Multi-unmanned aerial vehicle scheduling method based on hierarchical multi-agent reinforcement learning

Through the hierarchical multi-agent reinforcement learning framework, the problem of formation changes and insufficient scalability in multi-UAV collaborative scheduling is solved, the adaptability to different environments and formation compositions is achieved, the scalability of the algorithm is enhanced, and it is applicable for multi-UAV missions.

CN118778700AActive Publication Date: 2024-10-15UNIV OF SCI & TECH OF CHINA

Patent Information

Application Number
CN202410894574.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-15
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing multi-agent reinforcement learning algorithms are difficult to cope with changes in UAV formation composition and large-scale UAV formations in multi-UAV collaborative scheduling, and their scalability is insufficient, making them difficult to apply in practical applications.

Method used

Adopting a hierarchical multi-agent reinforcement learning method, through the hierarchical reinforcement learning framework of upper-level managers and lower-level drones, using subsequent state characteristics and transfer learning to achieve generalization capabilities for different environments and drone formation compositions, and enhance Algorithm scalability.

Benefits of technology

While realizing multi-UAV cooperation, it also enhances the adaptability to different environments and formations, improves the scalability of the algorithm, and can be applied to tasks such as temporary communication services, Internet of Things construction, and multi-UAV tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778700A_ABST
    Figure CN118778700A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-unmanned aerial vehicle scheduling method based on hierarchical multi-agent reinforcement learning, and the method comprises the steps: building a hierarchical reinforcement learning framework for guiding the scheduling of multiple unmanned aerial vehicles, and enabling the hierarchical reinforcement learning framework to comprise the instruction generation of an upper-layer manager and the instruction learning of a lower-layer unmanned aerial vehicle; an upper-layer manager collects view information of the lower-layer unmanned aerial vehicle and provides a strategy on a longer time scale for the lower-layer unmanned aerial vehicle; and the lower-layer unmanned aerial vehicle automatically learns an instruction set sent by the upper-layer manager by using subsequent state characteristics, and executes a specific decision according to the instruction set sent by the upper-layer manager and current visual field observation. According to the method, the generalization ability to different environments and different unmanned aerial vehicle formations can be increased while multi-unmanned aerial vehicle cooperation is realized, the expandability of the algorithm is enhanced, and the method can be applied to multi-unmanned aerial vehicle tasks such as temporary communication service provided by the unmanned aerial vehicles, unmanned aerial vehicle Internet of Things construction, mobile edge calculation and multi-unmanned aerial vehicle tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned aerial vehicle technology, and in particular to a multi-unmanned aerial vehicle scheduling method based on hierarchical multi-agent reinforcement learning. Background Art

[0002] In recent years, the technology of unmanned aerial vehicles (UAVs) has developed rapidly and has been widely used in civil fields such as agricultural monitoring, search and rescue, and logistics. However, a single drone is limited by its flight distance and load, and its ability to cope with emergencies is limited. In contrast, a multi-drone system has better performance, more flexible applications, and stronger fault response capabilities. With the reduction of drone costs, the application of multi-drone collaborative tasks has become more extensive, and the demand for multi-drone collaborative planning has become more urgent. In the deployment of multiple drones, an effective algorithm is needed to schedule tasks and realize multi-drone collaboration. Multi-drone tasks in different scenarios have common properties and can be modeled uniformly. Users scattered in the map need drones to provide certain services. During the operation of multiple drones, new service requirements may be constantly proposed. When users are within the service range of drones, drones can consume certain resources (including computing resources, communication resources, etc.) and time to provide services to users. During the mission, drones may encounter failures or run out of power, or drones may join the team midway. During the mission, it is necessary to meet user needs, improve service quality, and reduce drone energy consumption, so collaboration between drones is required. Under this modeling, the multi-UAV scheduling problem can be reduced to the multi-traveling salesman problem, which is an NP-hard combinatorial optimization problem.

[0003] With the development of reinforcement learning (RL), researchers have tried to apply this technology to the field of multi-UAVs. Reinforcement learning strategies obtain feedback rewards through interaction with the environment. They do not require prior knowledge of the environment and can learn an effective strategy from scratch. In addition, reinforcement learning is a real-time decision-making method that has advantages in scenarios that require timely response and rapid adaptation. Multi-agent reinforcement learning follows a centralized training and distributed execution model, which can better meet the limitations of local observations and the needs of global coordination in multi-UAV applications. Multi-agent reinforcement learning has broad research prospects and value in the problem of multi-UAV collaborative scheduling. Current multi-agent reinforcement learning algorithms usually assume that the number of UAVs is fixed, but in actual applications, the composition of UAV formations is likely to change during the execution of tasks, which may weaken the collaborative ability of reinforcement learning strategies. At the same time, the scalability of multi-agent reinforcement learning algorithms is insufficient, and they are usually limited to learning the collaborative mode of 3 to 8 agents, making it difficult to apply to large-scale UAV formations. Summary of the invention

[0004] The purpose of the present invention is to provide a multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning, which can realize multi-UAV collaboration while increasing the generalization ability for different environments and different UAV formation compositions, and enhancing the scalability of the algorithm.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning, the method comprising:

[0007] Step 1: Establish a hierarchical reinforcement learning framework to guide multi-UAV scheduling, wherein the hierarchical reinforcement learning framework includes command generation by upper-level managers and command learning by lower-level UAVs;

[0008] Step 2: The upper-level managers collect the vision information of the lower-level drones and provide strategies for the lower-level drones on a longer time scale;

[0009] Step 3: The lower-level drone uses the successor state features to automatically learn the instruction set sent by the upper-level manager, and executes specific decisions based on the instruction set sent by the upper-level manager and the current field of view observation.

[0010] It can be seen from the technical solution provided by the present invention that the above method can realize multi-UAV collaboration while increasing the generalization ability for different environments and different UAV formation compositions, enhancing the scalability of the algorithm, and can be applied to multi-UAV tasks such as UAVs providing temporary communication services, UAV Internet of Things construction, mobile edge computing, and multi-UAV tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0012] Figure 1 A schematic flow chart of a multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, which does not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0014] like Figure 1 The figure is a schematic flow chart of a multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning provided by an embodiment of the present invention, wherein the method comprises:

[0015] Step 1: Establish a hierarchical reinforcement learning framework to guide multi-UAV scheduling, wherein the hierarchical reinforcement learning framework includes command generation by upper-level managers and command learning by lower-level UAVs;

[0016] In this step, in multi-agent reinforcement learning, the multi-UAV scheduling problem is defined as a partially observable Markov decision process (POMDP), represented by M = (N, S, O, A, R, γ, P), where N = {1, ..., n} is the set of agents, that is, the set of UAV individuals; in the specific implementation, the number of UAV individuals does not have to be fixed and can be increased or decreased within a certain range; S is the global state space, which cannot be directly obtained by UAV individuals; O = X i∈N O i is the joint observation space of individual drones, where O i represents the observation space of the ith agent, X i∈N O i represents the Cartesian product of the observation spaces of each agent. In implementation, the global state S is usually replaced by the approximation of the local observations of all agents; A = X i∈N A i is the joint action space of individual drones, where A i represents the action space of the ith agent, X i∈N A i Represents the Cartesian product of the action spaces of each agent; is the reward function, where represents a one-dimensional real number space; γ∈[0,1] is the reward discount factor. When the value of γ is close to 0, the partially observable Markov decision process POMDP focuses on the current reward value, and when the value of γ is close to 1, it focuses on the future reward value; P: S×A×S→[0,1] is the state transition probability function;

[0017] In the setting of partially observable Markov decision process (POMDP), the task execution process is divided into several discrete time steps; at a certain time step t, the agent (i.e., the drone) receives the environment observation s t ∈O=X i∈N O i , according to the agent's policy π(a|s), action a is determined t ∈A=X i∈N A i , and get the reward r(s) for the current time step t , a t ), and at the same time, the environment jumps to the next state s according to the current state observation, the agent action and the state transfer function P. t+1 ; Repeat the above process until the termination state is reached or the time step reaches the upper limit;

[0018] The task of multi-agent reinforcement is to learn the strategy π(a|s) and decide the actions in different states to maximize the expected cumulative reward and, expressed as:

[0019]

[0020] in, represents the expectation, and (s t , a t ) follows the strategy π(a|s);

[0021] The reward function R adopts the service quality QoS (Quality of Service) of individual drones, that is, the reinforcement learning goal is to maximize the cumulative QoS;

[0022] In the hierarchical reinforcement learning framework, the upper-level manager obtains the environmental reward r(s, a), that is, the reward in POMDP, and gives strategic guidance to the lower-level drones. The instruction is denoted as z, and the reward obtained by the lower-level drones is r(s, a)+r in (s, z, a) includes two parts: environmental reward and intrinsic reward. The intrinsic reward r in (s, z, a) is given by the multi-agent system to guide the lower-level drones to follow the instructions z from the upper-level managers;

[0023] Let the upper manager's strategy be π H , the upper management strategy π H Receive state observation s as input and output command z to the lower-level drone; the goal of upper-level manager reinforcement learning is: given the current lower-level strategy, adjust π H To maximize the sum of the cumulative upper layer rewards Q H , the expression is:

[0024]

[0025] Let the lower-level drone strategy be π L , the lower-level drone strategy π L Receive state observation s and upper-level instructions z as input, and output the drone's action a; the goal of the lower-level drone reinforcement learning is: given the current upper-level strategy, adjust π L To maximize the sum of the cumulative lower-level rewards Q L , the expression is:

[0026]

[0027] Reinforcement learning algorithms are applied at different levels to obtain strategies π L , π H .

[0028] Step 2: The upper-level managers collect the vision information of the lower-level drones and provide strategies for the lower-level drones on a longer time scale;

[0029] In this step, the upper-level managers output discrete instructions corresponding to different collaborative behavior modes, namely, π H (s): S → {0, 1} m , where m is the dimension of the instruction vector; the specific meaning is: the upper manager strategy π H Take the environment state as input and output m-dimensional instructions, each dimension of the instruction is 0 or 1;

[0030] In order to enable the upper layer to set different strategies for different scenarios, the present invention draws on the transfer learning method, analogizes switching cooperation modes in different scenarios to task migration, and adds a successor representation (SR) module to the upper layer to make the generalization ability of the upper layer decision stronger.

[0031] In the subsequent representation, the reward function r(s, a) is decomposed into the product of the environment dynamics φ and the weight w, that is:

[0032] r(s,a)=φ(s,a) T w (2)

[0033] Let ψ(s, a) = ∑ t γ t φ(s, a), then the sum of the cumulative rewards Q(s, a) is written as follows:

[0034]

[0035] Add the subsequent representation in the upper layer, and we have r(s, a) = φ(s, a) T w,Q H(s, z) = ψ(φ, z) T w, φ(s, a) represents the single-step environmental change from the perspective of the specific action of the lower layer, and ψ(φ, z) represents the long-term environmental change from the perspective of the upper layer action, that is, the subsequent representation, which is a further abstract representation of the environment based on φ(s, a). Therefore, the calculation of ψ(φ, z) depends on φ(s, a);

[0036] Upper management consists of three parts: Upper management strategy π H , single-step environment change φ(s, a) and reward weight w, and subsequent representation ψ(φ, z); where the upper layer instruction π H The latter three are represented by neural networks, and the specific parameters are learned by gradient descent, without manual definition. In the learning process of single-step environment change φ(s, a), reward weight w, and successor representation ψ(φ, z), the global state observation s, local state observation o, lower-level action a, and upper-level instruction z are all from the data set collected during training;

[0037] In order to ensure that the single-step environment change φ(s, a) contains complete environment information, it is necessary to be able to decode the original environment state s from φ(s, a). Therefore, the auxiliary network D(φ) is introduced in the training phase to decode the original environment state s from the single-step environment change φ(s, a). The goal of gradient descent is to minimize the state reconstruction loss. The loss function L(φ), L(D) is shown in formula (4):

[0038] L(φ)=L(D)=||D(φ(s,a))-s|| 2 (4)

[0039] Among them, φ, D are regarded as the encoder and decoder of the environment state s; D(φ(s, a)) means encoding first and then decoding, which is called reconstruction. Minimizing the state reconstruction loss means that we hope that the distance between the reconstruction result and the original state input s is the smallest;

[0040] The training method represented by formula (4) refers to the auto encoder algorithm (AE), and can eventually learn to obtain an effective encoder φ;

[0041] According to the definition of the successor representation ψ(φ, z), the training objective of the weight w is to minimize the reconstruction loss of the reward function r(s, a), and the loss function L(w) is expressed as:

[0042] L(w)=||φ(s,a) T wr(s,a)|| 2 (5)

[0043] The successor representation ψ(φ, z) is the discounted cumulative sum of the single-step environment change φ(s, a), so the training objective of the successor representation ψ(φ, z) is to minimize the temporal difference loss L(ψ), which can be expressed as:

[0044]

[0045] in, Indicates that the ψ(φ, z) network is used, but the gradient of the operation here is not included in the training process; s′ represents the successor state of state s; z′ represents the upper-level instruction of the step corresponding to s′;

[0046] The goal of the upper reinforcement learning is to maximize the sum of the cumulative rewards Q H (s, z) = ψ(φ, z) T w, given state observation s, upper manager strategy π H The calculation method is:

[0047] π H (s)=max z ψ(φ(s), z) T w (7)

[0048] In actual calculation, since ψ, φ, and w are represented by neural networks and are all continuous differentiable functions, the maximum value in formula (7) can be achieved by Newton's method. The calculation time of Newton's method is higher than that of using a fixed π. H function, but the spatial and temporal scales that upper-level managers focus on are more macroscopic than those at the lower levels, so they believe that the delay caused by this part of time consumption is acceptable.

[0049] φ, ψ have nothing to do with the composition of the lower-level drones, but only with the environment, which is fixed during the execution of the task. When the lower-level drone team changes, the upper-level manager can quickly adapt to the changes by updating the weight w;

[0050] φ and ψ are learned during training and fixed during execution; the weight w is learned during training and will still be updated during execution to cope with changes in the composition of the lower-level drone fleet during execution.

[0051] Step 3: The lower-level drone uses the successor state features to automatically learn the instruction set sent by the upper-level manager, and executes specific decisions based on the instruction set sent by the upper-level manager and the current field of view observation.

[0052] In this step, in order to make the final behavior of the lower-level drones conform to the instructions given by the upper-level managers, it is necessary to give intrinsic rewards to guide the lower-level drones to follow the instructions of the upper-level managers. Since the upper-level managers' instructions have no artificially defined semantics, the expected performance of the lower-level following the instructions is that the lower-level drones show different behavior patterns under different instructions. Specifically, we hope that the behavior trajectories of the lower-level drones under various instructions will produce a clustering effect in the latent space, and the specific class definition is given by the instructions generated by the upper layer, and each instruction corresponds to a class in the latent space.

[0053] In the process of the lower-level drone automatically learning the instruction set sent by the upper-level manager using the subsequent state features, an auxiliary network is introduced in the training phase, denoted as encoder E L , used to transform the k-step observation trajectory (o t , ..., o t+k ) is projected into the latent space, that is, the encoder E L The received input is the k-step observation trajectory of the lower-level UAV (o t , ..., o t+k ), outputs the projection z of the observed trajectory in the latent space; the auxiliary network is trained using the cross entropy loss function, and the loss function L(E L ) is expressed as:

[0054] L(E L )=CrossEntropy(E L (z|o t , ..., o t+k ), z) (8)

[0055] Encoder E L The dimension of the latent space projected by the lower-level drone observation trajectory is the same as the dimension m of the instruction set sent by the upper-level manager. Through cross-entropy loss training, the encoder output is made as close as possible to the distribution of the instruction z in the data set. Therefore, the encoder output is also represented by z, but the latent space corresponding to the encoder output is a continuous space. The value of each dimension can be interpreted as the probability that the instruction corresponding to the observation trajectory has a value of 1 in this dimension, which is different from the discrete instruction set space. Using the encoder E L Given the intrinsic reward of the lower-level drone during training:

[0056]

[0057] That is, the observed trajectory of the lower-level drone from step t to (t+k) corresponds to the instruction set z sent by the upper-level manager, where:

[0058] In the introduction of encoder E L When it is completely accurate, that is, the encoder E L Minimize formula (8), since the instruction set z∈{0,1}m , if the observation trajectory of the lower-level UAV (o t , ..., o t+k ) completely complies with the instruction set z, then the formula softmax(E L (z|o t , ..., o t+k ))≈z;

[0059] Otherwise, use the formula ||softmax(E L (z|o t , ..., o t+k ))-z|| 2 Indicates encoder E L The degree to which the output of does not conform to the instruction set z.

[0060] It can be seen that the feudal reinforcement learning (Feudal Reinforcement Learning) introduced in the embodiment of the present invention conducts hierarchical command from macro to micro, and enhances the global coordination between intelligent agents. Under the framework of feudal reinforcement learning, the upper layer makes decisions from the perspective of macro observation and long-term rewards, and conveys the goals to multiple lower layers, i.e., individual drones; the lower layer combines the instructions given by the upper layer and its own field of view observation to obtain the final execution action.

[0061] It is worth noting that the contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field.

[0062] The method described in the embodiment of the present invention is illustrated below with a specific example. In this example, the multi-drone task is set to provide temporary communication services in the disaster relief scenario. The global state S is the location of all people who need to communicate in the rescue scenario (hereinafter referred to as drone service users), and the current coordinates and speeds of all drones, which cannot be known in advance; the agent observation O is the coordinates and speed of each drone itself, as well as other drones and users to be served in the field of view; the agent action A is the speed direction and speed of its own drone; the reward function R is composed of local rewards and global rewards. If the current drone is providing communication services to the user, it will get a +1 reward; if it provides services to the same user at the same time as other drones, when redundancy occurs, the reward value obtained is +1 divided by the redundancy ratio; if it is idle, it will get a -1 reward; if it completes the service for a certain user, it will get a +5 reward.

[0063] The global reward consists of two parts: the number of users covered by the drone and the penalty for users not receiving service. The penalty for a single user is proportional to the waiting time for service. The goal of multi-agent reinforcement learning is to optimize the global reward, but the global reward can only be obtained in a simulated environment. In a real environment, consider using only local rewards.

[0064] In this example, the process of drones providing temporary base station services is simplified to the drones hovering over the people who need services for a period of time. In the simulation environment, users requesting communication services are distributed throughout the map, and the user coordinates are unknown to the drone agent. The drone can only receive communication requests and determine user coordinates after entering the corresponding communication range. Each user requires a certain communication service duration. When the service duration is met, the user disappears from the map, simulating the end of this part of the rescue process. Communication service users may appear in the middle of a simulation process, representing newly discovered people to be rescued.

[0065] This example uses the Multi-UAV Multi-Service OpenAI Gym simulation environment as the training environment. This environment has the following characteristics: there are obstacles that the drones need to avoid; each drone may run out of power; new drones may be added during operation, or existing drones may exit the team due to running out of power or hitting obstacles. Using the QMIX algorithm as the basic multi-agent reinforcement learning algorithm, the example is divided into two parts: the training phase and the execution phase. The operation processes are described below.

[0066] Assume that the policy parameter π of the lower-level drone is L The subsequent representation parameters ψ, φ, and w of the environment maintained by the upper-level manager have been learned in the training phase. The execution phase process is as follows:

[0067] 1. The lower-level drones 1, 2, ..., n each update their own observations o1, ..., o according to the current environment n .in, Contains its own coordinates, speed and field of view image.

[0068] 2. The lower-level drones 1, 2, ..., n each try to receive the instruction set z sent by the upper-level manager. The received content in this step may be empty. If it is empty, the last received instruction is kept. If the drone has never received an instruction from the upper layer, the next step is to use an empty instruction (0, .., 0) ∈ {0, 1} m run.

[0069] 3. The lower-level drones 1, 2, ..., n each observe o based on their own observations. i and the upper instruction set z calculates the final action Execute the action and jump to step 1.

[0070] 4. After repeating steps 1-3k times, the lower-level drone will take the local observation o of the current time step i And the local reward r iSend to upper-level managers. There may be delays in the message sending process, and the processing method is detailed in the next step. Steps 1-4 do not require waiting or synchronization between drones, but are distributed execution.

[0071] 5. The upper-level manager receives the observations and rewards sent by the lower-level drones and concatenates the local observations as the approximate global state s = (o1, ..., o n ). The message receiving process starts from receiving the observation of the first lower-level drone and ends when all lower-level drone observations are received or the waiting time limit is exceeded. If the observation of a lower-level drone j is not received at the end, the last observation received is used instead. If the new state of a drone is not received for more than 2×k steps, the drone is considered to have left the team and the drone state is no longer maintained.

[0072] 6. If the composition of the lower-level drone team has changed compared to the last time the upper-level instructions were calculated, the weight w of the environmental dynamic reward is updated according to formula (5).

[0073] 7. The upper management calculates the new instruction z=π according to formula (7). H (s), send a new instruction set z to the lower-level drones, and jump to step 1.

[0074] 8. Repeat steps 1-7 until the task is completed.

[0075] The training phase requires the lower-level drone to interact with the environment to collect training data. Some processes are the same or similar to the execution phase. Since the training phase is only performed in a simulated environment, communication delay is not considered. The data set is denoted as D, and the training phase process is as follows:

[0076] 1. Run the process steps 1-3 of the execution phase, and convert (s = {o1, ..., o n}, a={a1, ..., a n}, r, s′={o′1,...,o′ n}, a′={a′1,...,a′ n}) Store in temporary data set D T .

[0077] 2. After repeating the steps 1k times, the lower drone will i Send to the upper-level manager; the upper-level manager receives the observations sent by the lower-level drones and splices them as an approximate global state s = (o1, ..., o n ).

[0078] 3. The upper-level manager updates the weight w of the environmental dynamic reward according to formula (5).

[0079] 4. The upper-level manager uses the updated weight w to calculate the new instruction z′=π according to formula (5) H (s), sending new instructions to the lower-level drones.

[0080] 5. The temporary data set D T All the contents and old instructions z, current environment weight w are stored as a piece of data in the dataset D, and the temporary dataset D is cleared T , skip to step 1.

[0081] 6. After repeating steps 1-5p times, sample b data from the data set D and use the data sampled from the data set to update the parameters of each module.

[0082] 7. Calculate the intrinsic reward r obtained by the lower-level drone for each piece of data according to formula (9): in .

[0083] 8. Update the lower trajectory encoder E according to formula (8) L parameter.

[0084] 9. Use r+r in As the lower-level reward value, the strategy parameter π of the lower-level drone is updated according to the QMIX algorithm L .

[0085] 10. According to formula (4) and formula (6), update the upper manager instructions and subsequent characterization parameters ψ, φ, and jump to step 1.

[0086] 11. After repeating steps 1-10q times, use the weights w in the data set and the updated ψ, φ to recalculate the corresponding upper-level instructions for all entries in data set D, update data set D, and jump to step 1.

[0087] 12. Repeat steps 1-11 until the strategy parameter π of the lower drone is L And the successor characterization parameters ψ, φ of the upper managers converge.

[0088] In summary, the method described in the embodiment of the present invention has the following advantages:

[0089] (1) No prior knowledge about the environment is required, and no heuristic functions need to be manually written.

[0090] (2) Upper-level managers can automatically learn instruction sets without having to manually specify them; lower-level drones can learn how to follow instructions without having to manually program corresponding behavioral features.

[0091] (3) In the event of different team compositions or a sudden damage to a drone that cannot operate, upper-level managers can switch strategies and adjust the collaboration mode between drones to ensure that the mission is not affected.

[0092] (4) Through hierarchical multi-agent reinforcement learning, it is able to cope with changes in drone formations during mission execution and has stronger robustness and generalization capabilities; at the same time, hierarchical reinforcement learning also enhances the scalability of the multi-agent reinforcement learning algorithm.

[0093] In addition, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0094] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.

Claims

1. A multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning, characterized in that: The method comprises: Step 1: Establish a hierarchical reinforcement learning framework to guide multi-UAV scheduling, wherein the hierarchical reinforcement learning framework includes command generation by upper-level managers and command learning by lower-level UAVs; Step 2: The upper-level managers collect the vision information of the lower-level drones and provide strategies for the lower-level drones on a longer time scale; Step 3: The lower-level drone uses the successor state features to automatically learn the instruction set sent by the upper-level manager, and executes specific decisions based on the instruction set sent by the upper-level manager and the current field of view observation.

2. The multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning according to claim 1 is characterized in that: In step 1, In multi-agent reinforcement learning, the multi-UAV scheduling problem is defined as a partially observable Markov decision process POMDP, represented by M = (N, S, O, A, R, γ, P), where N = {1, ..., n} is the set of agents, that is, the set of UAV individuals; S is the global state space, which cannot be directly obtained by individual drones; O = × i∈N O i is the joint observation space of individual drones, where O i represents the observation space of the ith agent, × i∈N O i represents the Cartesian product of the observation space of each agent; A = × i∈N A i is the joint action space of individual drones, where A i represents the action space of the ith agent, × i∈N A i Represents the Cartesian product of the action spaces of each agent; is the reward function, where Represents a one-dimensional real number space; γ∈[0,1] is the reward discount factor. When the value of γ is close to 0, the partially observable Markov decision process POMDP focuses on the current reward value, and when the value of γ is close to 1, it focuses on the future reward value. P: S×A×S→[0, 1] is the state transition probability function; In the setting of partially observable Markov decision process (POMDP), the task execution process is divided into several discrete time steps; at a certain time step t, the agent receives the environment observation s t ∈O=× i∈N O i , according to the agent's strategy π(a|s), action a is determined t ∈A=× i∈N A i , and get the reward r(s) for the current time step t , a t ); At the same time, the environment jumps to the next state s according to the current state observation, the agent action and the state transfer function P t+1 ; Repeat the above process until the termination state is reached or the time step reaches the upper limit; The task of multi-agent reinforcement is to learn the strategy π(a|s) and decide the actions in different states to maximize the expected cumulative reward and, expressed as: in, represents the expectation, and (s t , a t ) follows the strategy π(a|s); The reward function R adopts the service quality QoS of individual drones, that is, the reinforcement learning goal is to maximize the cumulative QoS; In the hierarchical reinforcement learning framework, the upper-level manager obtains the environmental reward r(s, a), that is, the reward in POMDP, and gives strategic guidance to the lower-level drones, with the instruction z. The reward r(s, a)+r in (s, z, a) includes two parts: environmental reward and intrinsic reward. The intrinsic reward r in (s, z, a) is given by the multi-agent system to guide the lower-level drones to follow the instructions z from the upper-level managers; Let the upper manager's strategy be π H , the upper management strategy π H Receive state observation s as input and output command z to the lower-level drone; the goal of upper-level manager reinforcement learning is: given the current lower-level strategy, adjust π H To maximize the sum of the cumulative upper layer rewards Q H , the expression is: Let the lower-level drone strategy be π L , the lower-level drone strategy π L Receive state observation s and upper-level instructions z as input, and output the drone's action a; the goal of the lower-level drone reinforcement learning is: given the current upper-level strategy, adjust π L To maximize the sum of the cumulative lower-level rewards Q L , the expression is: Reinforcement learning algorithms are applied at different levels to obtain strategies π L , π H .

3. The multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning according to claim 1 is characterized in that: In step 2, the upper-level managers output discrete instructions corresponding to different collaborative behavior patterns, namely π H (s): S → {0, 1} m , where m is the dimension of the instruction vector; the specific meaning is: the upper manager strategy π H Take the environment state as input and output m-dimensional instructions, each dimension of the instruction is 0 or 1; In the subsequent representation, the reward function r(s, a) is decomposed into the product of the environment dynamics φ and the weight w, that is: r(s,a)=φ(s,a) T w (2) Let ψ(s, a) = ∑ t γ t φ(s, a), then the sum of the cumulative rewards Q(s, a) is written as follows: Add the subsequent representation in the upper layer, and we have r(s, a) = φ(s, a) T w,Q H (s, z) = ψ(φ, z) T w, φ(s, a) represents the single-step environmental change from the perspective of the specific action of the lower layer, and ψ(φ, z) represents the long-term environmental change from the perspective of the upper layer action, that is, the subsequent representation, which is a further abstract representation of the environment based on φ(s, a). Therefore, the calculation of ψ(φ, z) depends on φ(s, a); Upper management consists of three parts: Upper management strategy π H , single-step environment change φ(s, a) and reward weight w, and subsequent representation ψ(φ, z); In order to ensure that the single-step environment change φ(s, a) contains complete environment information, it is necessary to be able to decode the original environment state s from φ(s, a). Therefore, the auxiliary network D(φ) is introduced in the training phase to decode the original environment state s from the single-step environment change φ(s, a). The goal of gradient descent is to minimize the state reconstruction loss. The loss function L(φ), L(D) is shown in formula (4): L(φ)=L(D)=||D(φ(s,a))-s|| 2 (4) Among them, φ, D are regarded as the encoder and decoder of the environment state s; D(φ(s, a)) means encoding first and then decoding, which is called reconstruction. Minimizing the state reconstruction loss means that we hope that the distance between the reconstruction result and the original state input s is the smallest; According to the definition of the successor representation ψ(φ, z), the training objective of the weight w is to minimize the reconstruction loss of the reward function r(s, a), and the loss function L(w) is expressed as: L(w)=||φ(s,a) T w-r(s,a)|| 2 (5) The successor representation ψ(φ, z) is the discounted cumulative sum of the single-step environment change φ(s, a), so the training objective of the successor representation ψ(φ, z) is to minimize the temporal difference loss L(ψ), which can be expressed as: in, Indicates that the ψ(φ, z) network is used, but the gradient of the operation here is not included in the training process; s′ represents the successor state of state s; z′ represents the upper-level instruction of the step corresponding to s′; The goal of upper-level managers’ reinforcement learning is to maximize the sum of cumulative rewards Q H (s, z) = ψ(φ, z) T w, given state observation s, upper manager strategy π H The calculation method is: p H (s)=max z ψ(φ(s),z) T w (7) When the lower-level drone team changes, the upper-level manager can quickly adapt to the changes by updating the weight w.

4. The multi-UAV scheduling method based on hierarchical multi-agent reinforcement learning according to claim 1 is characterized in that: In step 3, when the lower-level drone uses the successor state features to automatically learn the instruction set sent by the upper-level manager, the auxiliary network in the training phase is introduced, denoted as encoder E L , used to transform the k-step observation trajectory (o t , ..., o t+k ) is projected into the latent space, that is, the encoder E L The received input is the k-step observation trajectory of the lower-level UAV (o t , ..., o t+k ), outputs the projection z of the observed trajectory in the latent space; the auxiliary network is trained using the cross entropy loss function, and the loss function L(E L ) is expressed as: L(E L )=CrossEntropy(E L (from|about t ,…,about t+k ),z) (8) Encoder E L The dimension of the latent space projected by the lower-level drone observation trajectory is the same as the dimension m of the instruction set sent by the upper-level manager; using the encoder E L Given the intrinsic reward of the lower-level drone during training, it is expressed as: That is, the observed trajectory of the lower-level drone from step t to (t+k) corresponds to the instruction set z sent by the upper-level manager, where: In the introduction of encoder E L When it is completely accurate, that is, the encoder E L Minimize formula (8), since the instruction set z∈{0,1} m , if the observation trajectory of the lower-level UAV (o t , ..., o t+k ) completely complies with the instruction set z, then the formula softmax(E L (z|o t , ..., o t+k ))≈z; Otherwise, use the formula ||softmax(E L (z|o t , ..., o t+k ))-z|| 2 Indicates encoder E L The degree to which the output of does not conform to the instruction set z.

Citation Information

Patent Citations

  • Large-scale multi-unmanned aerial vehicle task scheduling method based on double-layer reinforcement learning

    CN115268493A

  • Multi-unmanned aerial vehicle air combat decision-making method based on multi-agent layered reinforcement learning

    CN115291625A

  • Unmanned aerial vehicle dynamic task allocation method and device based on hierarchical reinforcement learning

    CN117933622A

Cited By

  • Kit production workshop scheduling method and system based on hierarchical reinforcement learning

    CN119247907A

  • Multi-unmanned aerial vehicle cooperation strategy learning method based on inter-unmanned aerial vehicle subsequent influence internal reward

    CN120122702A

  • Multi-UAV cooperative strategy learning method based on intrinsic rewards of subsequent influence between drones

    CN120122702B

  • Biped humanoid robot robust motion control method based on state reconstruction

    CN120469192A