Multi-task-oriented naval vessel cluster planning control method
Through a decision-making system based on multi-ship deep reinforcement learning, using directional entropy advantage value calculation and the "actor-critic" method, the problem of anti-noise and multi-task collaboration in ship cluster planning and control is solved, and high-precision ship cluster planning and control is achieved. Effect.
Patent Information
- Application Number
- CN202410800990.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing ship cluster planning and control models are overly sensitive to adversarial samples and prone to erroneous output due to non-random noise, which is especially fatal in ship navigation and difficult to achieve complex multi-task coordinated actions.
A decision-making system based on multi-ship deep reinforcement learning is used to optimize ship planning and control through the calculation of directional entropy advantage value in reinforcement learning. It combines the "actor-critic" approach to decision-making, trains to obtain optimal parameters, outputs action strategies, and realizes the ship Multi-task planning control for clusters.
It improves the high-precision planning and control capabilities of ship clusters in complex sea areas, enhances the robustness against noise, and ensures the accuracy of decision-making and the effectiveness of coordinated actions.
Smart Images

Figure CN118746992A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of intelligent command technology, and in particular relates to a multi-task oriented ship cluster planning and control method. Background Art
[0002] Ship cluster training requires coordination among ships, including information sharing, situational awareness, and joint operations. This requires each ship to have a highly automated command system that can make quick decisions and coordinate actions to cope with complex and changing maritime environments. In addition, ship cluster training also needs to consider technical issues such as formation control, formation motion planning, target identification and tracking, information sharing and fusion, so the planning and control of ship clusters is a multi-task complex system.
[0003] Although the existing model has initially integrated knowledge and data in the training data, it is overly sensitive to adversarial samples due to its use of purely supervised learning. Once non-random noise that is imperceptible to humans is added to the sample set, the model will give erroneous outputs with high confidence. This phenomenon is common in deep learning models and is even more fatal in the case of ship navigation problems. Summary of the invention
[0004] The goal of this application is to use a decision-making system based on multi-ship deep reinforcement learning to solve the optimization process of a series of ship planning and control problems. Through the calculation of directional entropy advantage values in reinforcement learning, it will eventually achieve a ship cluster planning and control effect for multiple tasks (ship obstacle avoidance, cruising scenarios, etc.).
[0005] To achieve the above objectives, the multi-task oriented ship cluster planning and control method disclosed in the present application includes the following steps:
[0006] The simulation data of the sea area is trained based on the reinforcement learning optimization algorithm, and multiple processes are used to perform multi-task parallel training during the training process;
[0007] Each ship calculates the difference between its action value function and state value function to obtain the advantage value, and combines the advantage value with the directional entropy to encourage the ship to choose the advantage value in the direction of entropy reduction as much as possible;
[0008] Calculate the error between the advantage value estimated by the command center and the advantage value calculated by each ship based on directional entropy, and calculate the Q function based on the error;
[0009] The "actor-critic" method in reinforcement learning is used to make decisions, the Q function is optimized by gradient descent method, and the optimal parameters in reinforcement learning are obtained through training;
[0010] The actual state of the sea area is input into the trained reinforcement learning model, and the action strategy of each ship is output.
[0011] Preferably, the advantage value is calculated as follows:
[0012] A π (s, a) = Q π (s, a)-V π (s)
[0013] π is the strategy, Q π (s, a) is the expected reward of taking action a in state s, V π (s) is the expected return of following the current policy in state s;
[0014] The advantage value is divided into n directional levels, each directional level has a certain probability pi in all directional levels, and the advantage value based on directional entropy is calculated as follows:
[0015]
[0016] It represents the estimated advantage value of the action of ship x based on the current knowledge.
[0017] Preferably, the error between the advantage value based on directional entropy calculated by the ship and the advantage value estimated by the command center is calculated as follows:
[0018]
[0019] in and They represent the advantage value based on directional entropy calculated by the ship and the advantage value estimated by the command center, i is the scene number, M is the scene set, and τ is a hyperparameter.
[0020] Preferably, the Q function is as follows:
[0021]
[0022] in, is the Q function value, is the action at time t+1, is the value at time t+1, is the total reward value of scene i at time t, and π(i) is the strategy under scene i.
[0023] Preferably, the reward function between ship x and ship y is:
[0024] R i =λ1r c0 +λ2r en
[0025] Among them, r co Reward for value improvement, ren is the reward for situation improvement, λ1 and λ2 are adjustment factors;
[0026] The value improvement reward is calculated as follows:
[0027]
[0028] is the state action value of ship x when ship y cooperates with ship x, t is the current moment, t-1 is the previous moment, is the state action value of ship x when ship y did not cooperate with ship x at the previous moment;
[0029] The situation improvement reward is a reward given for a change in the number of cooperating ships. The situation improvement reward is calculated as follows:
[0030]
[0031] For the knowledge of the situation before the change, is the knowledge in the changed situation, θ is the knowledge parameter, are the state-value pairs of all ships in the situation.
[0032] Preferably, the total reward value of scene i at time t is calculated as follows:
[0033]
[0034] L is the total number of ships in scenario i, r l is the reward value of the lth ship, α l is the weight of the reward value of the lth ship.
[0035] The beneficial effects of this application are as follows:
[0036] This application aims at the optimization training needs of ship obstacle avoidance and cruising scenarios, and is based on building a ship cluster scheduling method that is more suitable for high-precision sea scene requirements. By calculating the advantage value based on directional entropy for each ship and optimizing the deviation between the advantage value of each ship and the command center's estimate, the scheduling decision in each task is further adjusted, and finally a ship cluster planning and control effect for multiple tasks (ship obstacle avoidance, cruising scenarios, etc.) is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Flowchart of the ship cluster planning and control method of the present application. DETAILED DESCRIPTION
[0038] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.
[0039] Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0040] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0041] The technical solutions provided in the embodiments of the present application involve technologies such as machine learning and natural language processing of artificial intelligence, which are specifically introduced and explained through the following embodiments.
[0042] Before introducing the embodiments of the present application, some terms involved in the present application are first explained.
[0043] 1. Reinforcement Learning: Reinforcement Learning (RL) is a branch of machine learning. Its goal is to train an agent to learn how to take actions in its interaction with the environment to maximize a certain cumulative reward. The core idea of reinforcement learning is that through trial-and-error, the agent learns the optimal strategy through continuous attempts, that is, what actions to take in a specific environment to obtain the greatest long-term benefits.
[0044] The basic elements of reinforcement learning include:
[0045] Agent: An agent that performs actions, such as a robot, software program, or decision-making system.
[0046] Environment: The external system in which the agent exists, which can be the physical world, a game interface, or an abstract state space.
[0047] State: A description of the environment at a certain moment, and the agent chooses actions based on the current state.
[0048] Action: An action that the agent can perform in the environment, such as moving, rotating, or buying a stock.
[0049] Reward: The feedback received by the agent from the environment after taking an action. Rewards can be positive (encouragement) or negative (punishment) and are used to guide the agent's learning.
[0050] Policy: The rule by which an agent chooses actions, that is, what action to take in a given state.
[0051] Value Function: Evaluates the long-term return of a state or state-action pair and guides the optimization of the strategy.
[0052] The Q function (also called the state-action value function) is used to evaluate the expected long-term reward of taking a specific action in a given state. The Q function is usually written as Q(s,a), where s represents the state and a represents the action. The value of the Q function represents the expected cumulative reward that can be obtained by following a certain policy after starting from state s and taking action a.
[0053] The process of reinforcement learning: the agent performs actions in the environment, changing the state of the environment. The environment gives rewards based on the new state. The agent updates its strategy based on the rewards and new state, hoping to get higher rewards in the future. This process continues to iterate until the agent learns to take the best action in various states.
[0054] This application focuses on multi-task scenarios of ship cluster task planning and control algorithm optimization training. Ship clusters need to meet the task planning and control functions in complex dynamic scenarios, that is, the cluster needs to be able to effectively avoid obstacles such as reefs and unrelated ships during the journey, and at the same time, it needs to cruise efficiently on a given trajectory and reach the destination quickly. This requirement poses a great challenge to machine learning algorithms: (1) There are many types of obstacles, and avoiding static and moving obstacles requires the model to learn complex and accurate cluster planning strategies; (2) Under the preset route, the ship needs to be controlled to learn to reach the destination in the shortest possible path; (3) Avoiding obstacles and the shortest path are contradictory to each other. For example, in order to avoid fishing boats, the ship may need to learn a waiting or detour strategy, but this strategy itself will damage the learning of the shortest path.
[0055] like Figure 1As shown, in one embodiment, the multi-task oriented ship cluster planning and control method disclosed in the present application includes the following steps:
[0056] The simulation data of the sea area is trained based on the reinforcement learning optimization algorithm, and multiple processes are used to perform multi-task parallel training during the training process;
[0057] Each ship calculates the difference between its action value function and state value function to obtain the advantage value, and combines the advantage value with the directional entropy to encourage the ship to choose the advantage value in the direction of entropy reduction as much as possible; the calculation of the advantage value calls the Advantage mechanism of the Dueling DQN algorithm, and finally obtains another value reference based on the behavior itself. This value reflects whether the current behavior can change the state of the scene as much as possible, and finally enters the update of the policy network through the directional entropy, thereby encouraging the ship to choose the advantage value in the direction of entropy reduction as much as possible, effectively ensuring that the final scheduling strategy will not fall into the local optimal solution, so that the ship is no longer confined to the local situation observed in front of it, thereby increasing the possibility of the neural network fitting the global optimal solution.
[0058] Calculate the error between the advantage value estimated by the command center and the advantage value calculated by each ship based on directional entropy, and calculate the Q function based on the error;
[0059] The "actor-critic" method in reinforcement learning is used to make decisions, the Q function is optimized by gradient descent method, and the optimal parameters in reinforcement learning are obtained through training;
[0060] The actual state of the sea area is input into the trained reinforcement learning model, and the action strategy of each ship is output. This framework can be extended to multiple different scenarios, and the real interaction data is stored in the experience knowledge base, and trained with the knowledge graph in an offline manner, so as to effectively optimize the parameters of the neural network, and finally make decisions using the "actor-critic" method in reinforcement learning, that is, input the current state of the sea area, output the probability of each ship's possible action, and sample the current action of each ship.
[0061] In one embodiment, the fleet needs to jointly intercept the other ship and determine whether it is necessary to intercept the other ship. Since the number of our ships is smaller than that of the other, simple strategies such as one-on-one defense cannot meet the needs of the task, so these ships need to be able to achieve effective cooperation to maximize the success rate of the task. This application designs an algorithm to optimize the action strategy of the fleet based on the characteristics of the fleet.
[0062] In one embodiment, the advantage value is calculated as follows:
[0063] A π (s, a) = Q π (s, a)-V π(s)
[0064] π is the strategy, Q π (s, a) is the expected reward of taking action a in state s, V π (s) is the expected return of following the current policy in state s;
[0065] The advantage value is divided into n directional levels, each directional level has a certain probability p among all directional levels i , the advantage value based on directional entropy is calculated as follows:
[0066]
[0067] It represents the advantage value estimate of the action of ship x based on the current knowledge.
[0068] In one embodiment, the error between the advantage value based on directional entropy calculated by the ship and the advantage value estimated by the command center is calculated as follows:
[0069]
[0070] in and They represent the advantage value based on directional entropy calculated by the ship and the advantage value estimated by the command center, i is the scene number, M is the scene set, and τ is a hyperparameter.
[0071] In one embodiment, the Q function is as follows:
[0072]
[0073] in, is the Q function value, is the action at time t+1, is the value at time t+1, is the total reward value of scene i at time t, and π(i) is the strategy under scene i.
[0074] In one embodiment, the reward function between ship x and ship y is:
[0075] R i =λ1r c0 +λ2r en
[0076] Among them, r co Reward for value improvement, r en is the reward for situation improvement, λ1 and λ2 are adjustment factors;
[0077] The value improvement reward is calculated as follows:
[0078]
[0079] is the state action value of ship x when ship y cooperates with ship x, t is the current moment, t-1 is the previous moment, is the state action value of ship x when ship y did not cooperate with ship x at the previous moment;
[0080] The situation improvement reward is a reward given for a change in the number of cooperating ships. The situation improvement reward is calculated as follows:
[0081]
[0082] For the knowledge of the situation before the change, is the knowledge in the changed situation, θ is the knowledge parameter, are the state-value pairs of all ships in the situation.
[0083] In one embodiment, the total reward value of scene i at time t is calculated as follows:
[0084]
[0085] L is the total number of ships in scenario i, r l is the reward value of the lth ship, α l is the weight of the reward value of the lth ship.
[0086] The beneficial effects of this application are as follows:
[0087] This application aims at the optimization training needs of ship obstacle avoidance and cruising scenarios, and is based on building a ship cluster scheduling method that is more suitable for high-precision sea area control needs. By calculating the advantage value based on directional entropy for each ship and optimizing the deviation between each ship and the advantage value estimated by the command center, the scheduling decision in each task is further adjusted, and finally a ship cluster planning and control effect for multiple tasks (ship obstacle avoidance, cruising scenarios, etc.) is achieved.
[0088] As used herein, the word "preferred" is intended to be used as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as being more advantageous than other aspects or designs. On the contrary, the use of the word "preferred" is intended to present concepts in a specific way. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X uses A or B" means any one of the naturally included permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
[0089] Moreover, although the present disclosure has been shown and described with respect to one or implementations, those skilled in the art will think of equivalent variations and modifications based on the reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components (such as elements, etc.), the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (such as it is functionally equivalent), even if the structure is not equivalent to the disclosed structure of the function in the exemplary implementation of the present disclosure shown herein. In addition, although the specific features of the present disclosure have been disclosed with respect to only one of several implementations, such features can be combined with one or other features of other implementations that may be desired and advantageous for a given or specific application. Moreover, insofar as the terms "including", "having", "containing" or their variations are used in specific embodiments or claims, such terms are intended to be included in a manner similar to the term "comprising".
[0090] The functional units in the embodiments of the present invention may be integrated into a processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc. The above-mentioned devices or systems may execute the storage method in the corresponding method embodiment.
[0091] To sum up, the above embodiment is an implementation mode of the present invention, but the implementation mode of the present invention is not limited by the embodiment. Any other changes, modifications, substitutions, combinations, and simplifications that deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A multi-task oriented ship cluster planning and control method, characterized in that: The following steps are involved: The simulation data of the sea area is trained based on the reinforcement learning optimization algorithm, and multiple processes are used to perform multi-task parallel training during the training process; Each ship calculates the difference between its action value function and state value function to obtain the advantage value, and combines the advantage value with the directional entropy to encourage the ship to choose the advantage value in the direction of entropy reduction as much as possible; Calculate the error between the advantage value estimated by the command center and the advantage value calculated by each ship based on directional entropy, and calculate the Q function based on the error; Adopt the "actor-critic" method in reinforcement learning to make decisions, optimize the Q function through the gradient descent method, and train to obtain the optimal parameters in reinforcement learning; The actual state of the sea area is input into the trained reinforcement learning model, and the action strategy of each ship is output.
2. The multi-task oriented ship cluster planning and control method according to claim 1 is characterized in that: The advantage value is calculated as follows: A π (s,a)=Q π (s,a)―V π (s) π is the strategy, Q π (s,a) is the expected reward of taking action a in state s, V π (s) is the expected return of following the current policy in state s; The advantage value is divided into n directional levels, each directional level has a certain probability p among all directional levels i , the advantage value based on directional entropy is calculated as follows: It represents the estimated advantage value of the action of ship x based on the current knowledge.
3. The multi-task oriented ship cluster planning and control method according to claim 2 is characterized in that: Calculate the error between the ship's calculated advantage value based on directional entropy and the advantage value estimated by the command center as follows: in and They represent the advantage value based on directional entropy calculated by the ship and the advantage value estimated by the command center, i is the scene number, M is the scene set, and τ is a hyperparameter.
4. The multi-task oriented ship cluster planning and control method according to claim 3 is characterized in that: The Q function is shown below: in, is the Q function value, is the action at time t+1, is the value at time t+1, is the total reward value of scene i at time t, π (i) is the strategy for scenario i.
5. The multi-task oriented ship cluster planning and control method according to claim 4 is characterized in that: The reward function between ship x and ship y is: R i =λ1r co +λ2r en Among them, r co Reward for value improvement, r en is the reward for situation improvement, λ1 and λ2 are adjustment factors; The value improvement reward is calculated as follows: is the state action value of ship x when ship y cooperates with ship x, t is the current moment, t-1 is the previous moment, is the state action value of ship x when ship y did not cooperate with ship x at the previous moment; The situation improvement reward is a reward given for a change in the number of cooperating ships. The situation improvement reward is calculated as follows: For the knowledge of the situation before the change, is the knowledge in the changed situation, θ is the knowledge parameter, are the state-value pairs of all ships in the situation.
6. The multi-task oriented ship cluster planning and control method according to claim 5 is characterized in that: The total reward value of scene i at time t is calculated as follows: L is the total number of ships in scenario i, r l is the reward value of the lth ship, a l is the weight of the reward value of the lth ship.
Citation Information
Patent Citations
Reinforcement learning reasoning method for unmanned ship cluster multi-target tracking strategy
CN118012057A
System and method for preventing possible hazards in ship combat system with reinforcement learning
KR102213357B1
