Strategy generation method for unmanned ship cluster confrontation
Through two-stage incremental learning and the Actor-Critic method, the problem of difficulty in adjusting the strategy of unmanned boat clusters in a rapidly changing environment is solved, and joint strategy generation with high flexibility and adaptability is achieved, which improves the efficiency of unmanned boat clusters. The decision-making efficiency and strategies are close to the actual scenario situation.
Patent Information
- Application Number
- CN202410789926.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-19
AI Technical Summary
When the unmanned boat cluster faces rapidly changing environments and emergencies, the existing reinforcement transfer learning algorithm has low real-time performance and low computational efficiency, making it difficult to quickly adapt and respond to different scenarios and emergencies, especially in unmanned boat clusters. Difficulty adjusting strategies when joining or exiting.
A two-stage incremental learning method is used to establish a strategy through a scenario-oriented Markov decision-making process. Some unmanned boats are initially selected as the first set to learn their value and status, and then more unmanned boats are selected as the second set for the second set. Secondary learning, optimizing rewards and revising the strategy, and using the Actor-Critic learning method to maximize the Q function to generate the optimal strategy.
It realizes the generation of highly flexible and highly adaptable joint strategies for unmanned boat clusters in rapidly changing environments, improves the decision-making efficiency of unmanned boats and the closeness of strategies to actual scenarios, and solves the problem of low collaboration efficiency between new and old unmanned boats. .
Smart Images

Figure CN118819142A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of intelligent control technology, and in particular relates to a strategy generation method for unmanned boat cluster confrontation. Background Art
[0002] Intelligent agents (drones or unmanned boats, etc.) have weak ability to migrate to cluster confrontation scenarios. Reinforcement learning has the characteristics of high sample complexity. Unmanned boats often need a long period of training and exploration to perform well on a certain task, but this is limited to a single scenario. However, there is a certain degree of suddenness and uncertainty in actual scenarios. For example, the opponent may suddenly adjust the action mode, and the information of the confrontation area is unknown. If you retrain according to the new environmental state, you will often miss important opportunities. Especially when the number of our clusters is less than that of the opponent, there are greater requirements for the ability of unmanned boats to deal with emergencies and unknown environments. Some unpredictable situations are difficult to solve in the early training. How to use the strategies trained in the existing environment to effectively mobilize the unmanned boat group to complete the task, and respond to different scenarios and sudden changes, and adaptively adjust its own strategies to cope with actual conditions has become a major challenge.
[0003] The unmanned boat swarm confrontation faces the challenge of fast-changing environment, and the impact of different environments on each unmanned boat in the system is difficult to predict. In addition to affecting the decision-making of the unmanned boat itself, it may also make the information interaction between the unmanned boats unstable, thereby affecting the decision-making of the unmanned boats. In addition, the unmanned boat swarm itself also faces the risk of structural changes. Depending on the scene or task requirements, new unmanned boats may join the swarm at any time or the unmanned boats may exit for some reason (such as sinking). The change of a single unmanned boat will affect the strategy of the entire swarm. The accuracy and computational efficiency of the reinforcement transfer learning algorithm are low. When the surrounding environment changes rapidly, how to quickly learn knowledge from the collaborative unmanned boats becomes the key. Summary of the invention
[0004] In view of the need for highly flexible and adaptable joint strategies for multiple unmanned boats caused by the ever-changing and evolving situation of unmanned scenes, this application proposes incremental learning to address the problems of poor real-time performance and complex optimization process of deep reinforcement transfer learning at this stage. Through two stages, knowledge is learned from cooperative unmanned boats to improve the strategy of unmanned boats and solve the problem of unmanned boat clusters quickly making response strategies according to the situation of the scene. In view of the need for rapid collaboration between new and old unmanned boats caused by the mechanism of adding and deleting unmanned boats in confrontation, the problem of the unmanned boats joining later having little understanding of the environment and poor effects of the actions they choose to execute is solved to help new unmanned boats collaborate with old unmanned boats more efficiently and effectively.
[0005] To achieve the above purpose, the strategy generation method for unmanned boat swarm confrontation disclosed in the present application includes the following steps:
[0006] Collect known unmanned boat swarm confrontation scenarios and corresponding strategies as training sets, and establish a scenario-oriented Markov decision process MDP;
[0007] Each unmanned boat i uses an incremental approach to learn the knowledge of its cooperating unmanned boats, that is, initially select some cooperating unmanned boats as the first set, learn the value and status of the unmanned boats in the first set, maximize the reward of each unmanned boat i, then select more cooperating unmanned boats as the second set, learn the value and status of the unmanned boats in the second set, and maximize the reward of each unmanned boat i twice;
[0008] Combining the rewards from the two learning optimizations, the strategy of each unmanned boat is corrected;
[0009] Use a parameterized neural network to represent the strategy of the unmanned boat, and then use the Actor-Critic learning method to maximize the Q function to learn the optimal strategy;
[0010] Output the optimal strategy, and each unmanned boat takes action according to the optimal strategy.
[0011] Preferably, in the first set, for unmanned boat i, the probability of selecting unmanned boat j is calculated as follows:
[0012]
[0013] Among them, r i and r j are the rewards of unmanned boat i and unmanned boat j respectively, μ is the mean of the rewards of all unmanned boats, and σ is the variance of the rewards of all unmanned boats.
[0014] Preferably, the second set includes the first set. For unmanned boats in the second set that are different from the first set, if the reward value obtained by maximizing the unmanned boats in the first set is greater than a first threshold, then from the unmanned boats outside the first set, an unmanned boat whose value similarity with the unmanned boats in the first set is greater than a second threshold is selected to be added to the second set; otherwise, an unmanned boat is randomly selected to be added to the second set.
[0015] Preferably, the similarity is calculated using a cosine similarity formula.
[0016] Preferably, the reward function for the collaboration between unmanned boat i and unmanned boat j is:
[0017] R i =λ 1 r co +λ 2 r en
[0018] Among them, r coReward for value improvement, r en Reward for improving the situation, λ 1 and λ 2 is the regulating factor;
[0019] The value improvement reward is calculated as follows:
[0020]
[0021] is the state action value of unmanned boat i when unmanned boat j cooperates with unmanned boat i, t is the current moment, t-1 is the previous moment, is the state action value of unmanned boat i when unmanned boat j did not cooperate with unmanned boat i at the previous moment;
[0022] The situation improvement reward is a reward given for a change in the number of cooperating unmanned boats. The situation improvement reward is calculated as follows:
[0023]
[0024] For the knowledge of the situation before the change, is the knowledge in the changed situation, θ is the knowledge parameter, is the state-value pair of all unmanned boats in the situation;
[0025] Preferably, the total reward value of a single unmanned boat i is:
[0026]
[0027] L is the total number of unmanned boats cooperating with unmanned boat i, r l is the reward value of the lth unmanned boat, α l is the weight of the reward value of the lth unmanned boat.
[0028] Preferably, (S, A, p, R) is the state space, action space, choice probability, and reward of the MDP tuple;
[0029] The Q function of the Markov decision process is shown below:
[0030]
[0031] 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 unmanned boat i at time t, γ is the discount factor, π (i) For strategy.
[0032] The beneficial effects of this application are as follows:
[0033] This application is aimed at the ever-changing and evolving situation in unmanned scenarios, and can meet the needs of highly flexible and highly adaptable multi-unmanned boat joint strategies.
[0034] The unmanned boat swarm utilizes other collaborative unmanned boats to assist in decision-making through incremental learning, while meeting the requirements of efficiency and performance, and corrects the original actions directly provided by the collaborative decision-making, which is closer to the actual scenario situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 An overall block diagram of this application. DETAILED DESCRIPTION
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] Before introducing the embodiments of the present application, some terms involved in the present application are first explained.
[0041] 1. Value function In reinforcement learning, value function is a core concept that measures the long-term return that an agent can expect to obtain under a given state or state-action pair. Value function is an important basis for agent decision-making and learning strategies because it reflects the potential impact of different states or actions on future returns. There are two main types of value functions: 1. State value function: V(s) represents the average value of future returns that an agent can expect to obtain when following a strategy in state (s). The state value function can be expressed and iteratively updated by the Bellman Equation. 2. Action value function, (Q(s,a))): (Q(s,a)) represents the average value of future returns that an agent can expect to obtain when taking action (a) in state (s) and following a strategy. The action value function can also be expressed and updated by the Bellman Equation. Methods for calculating and updating value functions include Monte Carlo method, temporal difference learning, Q-Learning and SARSA method. The Monte Carlo method estimates the value function by sampling the complete sequence without a model, that is, approximating the true value function through empirical averaging. Temporal Difference Learning (TD Learning) updates the value estimate of the current state by adding the immediate reward of the current state to the predicted value of the next state without waiting for the complete sequence. Q-Learning uses the maximum action value to update the Q function, while SARSA uses the actual action value of the next state to update.
[0042] 2.Actor-Critic: The Actor-Critic method is an important class of algorithms in Reinforcement Learning (RL). It combines the advantages of the Policy Gradient method and Temporal Difference Learning to learn the optimal policy in a more efficient way. In the Actor-Critic architecture, "Actor" and "Critic" play different roles: the Actor is responsible for selecting actions based on the current state, and its goal is to learn a policy, that is, what actions should be taken in a given state to maximize the long-term reward. The Actor is usually a policy function that depends on a set of parameters that are optimized by gradient ascent to maximize the expected cumulative reward. The Critic is responsible for evaluating the quality of the actions produced by the Actor, that is, estimating the value of the state or state-action pair. The Critic uses Temporal Difference Learning or other value function approximation methods (such as Q-Learning or SARSA) to estimate the performance of the policy. The feedback provided by the Critic (i.e., the estimate of the value function) is used to guide the Actor's policy update. The interaction between the actor and the critic can be summarized as the following process: 1. The actor selects an action a based on the current state s. 2. The environment receives the action a and returns a new state s' and an immediate reward r. 3. The critic evaluates the quality of the action a based on the new state s' and the immediate reward r, usually by calculating the TD error (i.e., the difference between the actual reward and the expected reward). 4. The actor uses the feedback (TD error) provided by the critic to adjust its policy parameters in order to choose a better action in similar situations in the future.
[0043] In response to the need for cross-domain strategy formulation for multiple unmanned boats caused by complex and changing scene situations, it is necessary to learn a group collaboration strategy with high scene adaptability to provide macro guidance for autonomous decision-making of unmanned clusters. On the other hand, by learning and improving strategies, each unmanned boat can correct specific actions in the micro autonomous decision-making process to better complete the work of coordinating with the group. With the joint cooperation of these two levels, this application solves the formulation of cross-domain strategies from macro to micro.
[0044] refer to Figure 1 The strategy generation method for unmanned boat swarm confrontation disclosed in the present application comprises the following steps:
[0045] Collect known unmanned boat swarm confrontation scenarios and corresponding strategies as training sets, and establish a scenario-oriented Markov decision process MDP;
[0046] Each unmanned boat i adopts a two-stage incremental approach to learn the knowledge of the unmanned boats that cooperate with it, namely: initially select some cooperative unmanned boats as the first set, learn the value and status of the unmanned boats in the first set, maximize the reward of each unmanned boat i, and then select more cooperative unmanned boats as the second set, learn the value and status of the unmanned boats in the second set, and maximize the reward of each unmanned boat i for the second time; compared with the method of learning the knowledge of all unmanned boats (full-scale learning), the above two-stage incremental learning method can avoid the huge amount of calculation and low efficiency of the full-scale learning method, and improve the calculation efficiency.
[0047] Combining the rewards from the two learning optimizations, the strategy of each unmanned boat is corrected;
[0048] Use a parameterized neural network to represent the strategy of the unmanned boat, and then use the Actor-Critic learning method to maximize the Q function to learn the optimal strategy;
[0049] Output the optimal strategy, and each unmanned boat takes action according to the optimal strategy.
[0050] In some embodiments, in the first set, for unmanned boat i, the probability of selecting unmanned boat j is calculated as follows:
[0051]
[0052] Among them, r i and r j are the rewards of unmanned boat i and unmanned boat j respectively, μ is the mean of the rewards of all unmanned boats, and σ is the variance of the rewards of all unmanned boats.
[0053] In some embodiments, the second set includes the first set. For unmanned boats in the second set that are different from the first set, if the reward value obtained by maximizing the unmanned boats in the first set is greater than a first threshold, then from the unmanned boats outside the first set, an unmanned boat whose value similarity with the unmanned boats in the first set is greater than a second threshold is selected to be added to the second set; otherwise, an unmanned boat is randomly selected to be added to the second set.
[0054] In some embodiments, the similarity is calculated using a cosine similarity formula.
[0055]
[0056] A and B are value vectors, θ is the angle between A and B, and ||A|| and |B|| represent the module lengths of A and B vectors.
[0057] In some embodiments, the reward function for the cooperation between unmanned boat i and unmanned boat j is:
[0058] R i =λ1 r co +λ 2 r en
[0059] Among them, r co Reward for value improvement, r en Reward for improving the situation, λ 1 and λ 2 is the regulating factor;
[0060] The value improvement reward is calculated as follows:
[0061]
[0062] is the state action value of unmanned boat i when unmanned boat j cooperates with unmanned boat i, t is the current moment, t-1 is the previous moment, It is the state action value of unmanned boat i when unmanned boat j did not cooperate with unmanned boat i at the previous moment, and Softmax is a normalized exponential function.
[0063] The situation improvement reward is a reward given for a change in the number of cooperating unmanned boats. The situation improvement reward is calculated as follows:
[0064]
[0065] 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 unmanned boats in the situation.
[0066] In some embodiments, the total reward value of a single unmanned boat i is:
[0067]
[0068] L is the total number of unmanned boats cooperating with unmanned boat i, r l is the reward value of the lth unmanned boat, α l is the weight of the reward value of the lth unmanned boat.
[0069] In some embodiments, (S, A, p, R) is the state space, action space, choice probability, and reward of the MDP tuple;
[0070] The Q function of the Markov decision process is shown below:
[0071]
[0072] 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 unmanned boat i at time t, γ is the discount factor, π (i) For strategy.
[0073] The beneficial effects of this application are as follows:
[0074] The two-stage incremental learning method of the present application, in which each unmanned boat learns knowledge from the collaborative unmanned boat, faces the constantly changing and evolving situation of the unmanned scene, and can meet the needs of highly flexible and highly adaptable multi-unmanned boat joint strategies.
[0075] The unmanned boat swarm uses the knowledge learned by other collaborative unmanned boats to assist in decision-making and correct the strategies directly provided by the collaborative decision-making, which is closer to the actual scenario situation.
[0076] 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.
[0077] 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".
[0078] 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.
[0079] 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 strategy generation method for unmanned boat swarm confrontation, It is characterized in that The following steps are involved: Collect known unmanned boat swarm confrontation scenarios and corresponding strategies as training sets, and establish a scenario-oriented Markov decision process MDP; Each unmanned boat i uses an incremental approach to learn the knowledge of its cooperating unmanned boats, that is, initially select some cooperating unmanned boats as the first set, learn the value and status of the unmanned boats in the first set, maximize the reward of each unmanned boat i, then select more cooperating unmanned boats as the second set, learn the value and status of the unmanned boats in the second set, and maximize the reward of each unmanned boat i twice; Combining the rewards from the two learning optimizations, the strategy of each unmanned boat is corrected; Use a parameterized neural network to represent the strategy of the unmanned boat, and then use the Actor-Critic learning method to maximize the Q function to learn the optimal strategy; Output the optimal strategy, and each unmanned boat takes action according to the optimal strategy.
2. According to the strategy generation method for unmanned boat swarm confrontation according to claim 1, It is characterized in that In the first set, for unmanned boat i, the probability of selecting unmanned boat j is calculated as follows: Among them, r i and r j are the rewards of unmanned boat i and unmanned boat j respectively, μ is the mean of the rewards of all unmanned boats, and σ is the variance of the rewards of all unmanned boats.
3. The strategy generation method for unmanned boat swarm confrontation according to claim 2, It is characterized in that The second set includes the first set. For unmanned boats in the second set that are different from the first set, if the reward value obtained by maximizing the unmanned boats in the first set is greater than a first threshold, then from the unmanned boats outside the first set, an unmanned boat whose value similarity with the unmanned boats in the first set is greater than a second threshold is selected to be added to the second set; otherwise, an unmanned boat is randomly selected to be added to the second set.
4. The strategy generation method for unmanned boat swarm confrontation according to claim 3, It is characterized in that The similarity is calculated using the cosine similarity formula.
5. The strategy generation method for unmanned boat swarm confrontation according to claim 4, It is characterized in that The reward function for the collaboration between unmanned boat i and unmanned boat j is: R i =λ 1 r co +λ 2 r en Among them, r co Reward for value improvement, r en Reward for improving the situation, λ 1 and λ 2 is the regulating factor; The value improvement reward is calculated as follows: is the state action value of unmanned boat i when unmanned boat j cooperates with unmanned boat i, t is the current moment, t-1 is the previous moment, is the state action value of unmanned boat i when unmanned boat j did not cooperate with unmanned boat i at the previous moment; The situation improvement reward is a reward given for a change in the number of cooperating unmanned boats. 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 unmanned boats in the situation.
6. The strategy generation method for unmanned boat swarm confrontation according to claim 5, It is characterized in that The total reward value of a single unmanned boat i is: L is the total number of unmanned boats cooperating with unmanned boat i, r l is the reward value of the lth unmanned boat, α l is the weight of the reward value of the lth unmanned boat.
7. The strategy generation method for unmanned boat swarm confrontation according to claim 6, It is characterized in that (S, A, p, R) is the state space, action space, choice probability, and reward of the MDP tuple; The Q function of the Markov decision process 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 unmanned boat i at time t, γ is the discount factor, π (i) For strategy.
Citation Information
Patent Citations
Layered reinforcement learning method for uncertain auxiliary task in confrontation scene
CN116776963A
Controlling a robot during interaction with a human
US20240157557A1
Cited By
Unmanned cluster collaborative management control loop construction method and system
CN121477883A
