Unmanned aerial vehicle real-time imitation decision-making method based on human preference
Through the demonstration-based attention mechanism and reinforcement learning UAV control method, it imitates the human operator's preferred trajectory, solves the problem of insufficient decision-making stability and adaptability of traditional UAVs in dynamic environments, and achieves control in complex environments. efficient autonomous decision-making and task completion.
Patent Information
- Application Number
- CN202410691027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-20
AI Technical Summary
Traditional UAV control strategies are difficult to achieve efficient autonomous decision-making and adaptability in dynamic environments. Especially when facing emergencies and unpredictable changes in unknown environments, operational efficiency and safety are difficult to guarantee.
Using a demonstration-based attention mechanism and reinforcement learning UAV control method, the deep learning model imitates the human operator's preferred trajectory, combined with the context-driven meta-reinforcement learning framework, to train UAVs to make autonomous decisions in complex environments, using Soft -Actor-Critic algorithm and simulator based on human demonstration data for model training.
It significantly improves the autonomy and flexibility of UAVs in complex environments, can effectively respond to emergencies, improves the success rate and efficiency of task completion, and achieves robust adaptive decision-making.
Smart Images

Figure CN118672138A
Abstract
Description
Technical Field
[0001] This invention relates to the field of drone control technology, and more particularly to a method for real-time drone decision-making based on human preferences. Specifically, this invention proposes a drone control method based on a demonstration-based attention mechanism and reinforcement learning, aiming to improve drones' autonomous decision-making capabilities in dynamic environments. Background Art
[0002] In recent years, with the rapid development of drone technology, drones have become increasingly widely used in both civil and military fields, covering disaster response, traffic monitoring, agricultural monitoring, logistics and distribution, and many other areas. The increasing complexity of drone operations and the need to perform missions in changing environments have posed new challenges to traditional drone control strategies, particularly in achieving efficient autonomous decision-making and operation in unknown environments.
[0003] Traditional drone operations, with their pre-set flight paths and fixed response strategies, often fail to cope with emergencies or unpredictable environmental changes. For example, in search and rescue missions, drones may need to autonomously navigate unknown terrain and rapidly respond to unexpected obstacles or climate changes. Furthermore, direct human control of drones has operational limitations, particularly in situations with restricted line of sight or complex environments, making efficient and safe operations difficult to guarantee.
[0004] Single-view imitation learning (OSIL) is an emerging learning strategy that enables drones to imitate human operational decisions in specific scenarios by learning human operational skills, achieving efficient real-time response. Currently, single-view imitation learning methods perform well in relatively static environments, but their adaptability is limited when faced with unexpected changes in dynamic environments. In practical applications, drones need to deal with situations that were not encountered during demonstrations, which places higher generalization requirements on imitation strategies. For example, drones must be able to adapt and adjust their behavior to complete the mission when faced with newly emerging obstacles or dynamic changes. Existing imitation learning methods typically assume that the environments during demonstration collection and policy deployment are highly similar, but in practical applications, this assumption does not hold true, making it difficult for drones to cope with unexpected changes when deployed. Summary of the Invention
[0005] Purpose of the Invention: This invention aims to address the adaptability and decision-making stability issues faced by existing drone control methods based on human preferences in dynamic environments and unforeseen changes. By mimicking the preferences and behavioral patterns of human operators, this invention provides a drone autonomous decision-making method capable of learning and adapting to new tasks in real time. This method specifically focuses on improving drone autonomy and flexibility in complex environments, enabling it to effectively respond to various emergencies during mission execution, thereby significantly improving the success rate and efficiency of mission completion.
[0006] Technical solution: A real-time UAV imitation decision-making method based on human preferences. It includes the following contents:
[0007] (1) A dataset D of N human beings completing different tasks is collected using a drone simulator. The dataset D is a flight trajectory of multiple drones operated by humans: D = {τ i} N i=0 ;
[0008] (2) A deep learning model π(a|τ,s) based on the demonstrated attention mechanism. This model takes the human’s preferred trajectory and the current state faced by the UAV as input, and outputs the decision action a that the UAV should take in the current state s in order to imitate the human’s preferred trajectory τ;
[0009] (3) Based on the context-driven meta-reinforcement learning framework, the deep learning model in (2) is trained so that the trained model π(a|τ,s) can perceive the human preferences in any input τ and make adaptive decisions under different states s.
[0010] The trajectory τ is a human-demonstrated trajectory represented by a series of state-action pairs: τ = (s0, a0), ... (s t ,a t ),…,(s T ,a T ), where t is the human demonstration collected at the tth time moment, and each pair represents the action that the drone should perform in a specific state. These trajectories are collected from a simulated environment, in which the operator of the human trajectory controls the drone to perform various tasks, such as navigation, search and rescue, or cargo transportation. Each state records the drone's own state information and surrounding environment information, including the aircraft's current speed and three angles relative to the north-east coordinate system; each action records the drone's response under various environmental conditions, including the throttle control command that controls the aircraft's flight speed, and the three basic angle change commands for controlling flight: pitch command, roll command, and yaw command. The environmental information includes obstacle locations, weather conditions, and terrain features, and the drone's own state information includes position, speed, and attitude angle.
[0011] The deep learning model based on the demonstration attention mechanism is designed to enhance the predictive ability of unseen data through a specific inductive bias. The network architecture includes the following three main modules: (1) Recognition module: This module uses the attention weighting module to calculate the similarity weight between the query vector q and the key vector k. Here, q represents the representation of the access state and k represents the representation of the human state. The output of this module is the weight vector w. (2) Analysis module: After the attention weighting, a point-by-point multiplication operation is performed to calculate the weighted value v″, that is, v″=∑ i v i w i Each vector value v i Represents the corresponding human state-action (s i ,a i ) pair representation. (3) Tracking module. In this stage, the current state representation q is integrated with the weighted human state-action pair representation (i.e., human behavior pattern v″) to form a composite representation c. The three modules are repeatedly stacked in multiple layers (the sequential combination of the three modules constitutes a layer). Each layer of query vector q is initialized with the composite representation c obtained in the previous layer for subsequent operations. Finally, the composite representation c is output through a linear layer to imitate the action a.
[0012] The context-driven meta-reinforcement learning framework is a meta-reinforcement learning algorithm based on the Soft-Actor-Critic algorithm. The algorithm selects a demonstration trajectory τ from the human demonstration dataset D each time, uses the deep learning model π(a|τ,s) and the drone simulator to interact to collect exploration data and add it to the experience pool B. The exploration data consists of a series of state-action-imitation reward-next moment state (s, a, r, s ′ ) data pairs. The algorithm periodically calls a standard reinforcement learning optimization operator based on Soft-Actor-Critic to update the model π(a|τ,s) using data from the experience pool B. Through continuous exploration and updating, the stimulation model learns to imitate the human preferred behaviors in the human demonstration dataset and complete the specified task.
[0013] The model reward consists of two parts, namely W and R T composition:
[0014]
[0015] in, is the human demonstration data pair with the minimum distance from the current state-action pair (s, a) in the human dataset, and W is the metric function. It can be flexibly set to different functions according to different actual task conditions. For example, 1-Euclidean distance can be used as an implementation of W. When (s, a) and The closer the distance, the smaller the Euclidean distance, and the larger the reward W. α is a hyperparameter that is adjusted according to the actual training situation of the algorithm. T For task rewards, when the agent completes the task performed by the human demonstration data, a feedback of 1 is given. If an accident occurs, such as hitting a wall or falling, a feedback of -1 is given. In other cases, a feedback of 0 is given.
[0016] Beneficial effects: Compared with the existing technology, the real-time imitation decision-making method for drones based on human preferences provided by the present invention has the following advantages:
[0017] This paper proposes a demonstration-based attention deep network structure for factual imitation decision-making of drones. This method has powerful expressive ability and can effectively perceive a large number of different human preference behaviors and make corresponding real-time imitation decisions.
[0018] This paper proposes a context-driven meta-reinforcement learning framework, enabling deep learning models to emulate human-preferred behaviors through reinforcement learning during interactive exploration of the environment. Because drones collect a large amount of data from unseen situations during exploration, the imitation strategy derived from reinforcement learning can adaptively adjust its behavior to various unseen situations, achieving robust adaptive decision-making. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 2 is a schematic diagram of the structure of a deep learning model based on a demonstrated attention mechanism in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The present invention is further illustrated below with reference to specific examples. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, modifications of various equivalent forms of the present invention made by those skilled in the art all fall within the scope defined by the claims attached to this application.
[0021] A real-time imitation decision-making method for drones based on human preferences aims to improve the autonomy and adaptability of drones in complex environments through imitation learning and reinforcement learning algorithms. The specific implementation is as follows:
[0022] Step 1:
[0023] Build a drone simulator based on physics and aerodynamics, capable of generating a variety of complex flight environments and simulating real-world physical feedback. The simulator's environment can randomly generate obstacles such as tall buildings, trees, and other aircraft, and the environment changes depending on time and the drone's interactive behavior.
[0024] Step 2:
[0025] Dataset D is generated by collecting data from humans operating drones to complete specific tasks in a drone simulator. Each data entry records the complete trajectory τ of the drone from takeoff to mission completion, including state information and corresponding operational actions. State information includes the drone's position, velocity, and surrounding environment parameters; operational actions include throttle adjustment, pitch, roll, and yaw control.
[0026] Step 3:
[0027] A deep learning model π(a|τ,s) based on a demonstration-based attention mechanism was developed. This model analyzes the human's flight trajectory and the drone's current state to predict the action to be performed. This model consists of three main processing modules: recognition, analysis, and tracking. The recognition module calculates the similarity between the current state and the human's state, the analysis module deeply explores human behavior patterns, and the tracking module combines the current state and human behavior to form a decision basis. The operation process of this network is detailed in the attached Figure 1 .
[0028] Step 4:
[0029] A context-driven meta-reinforcement learning framework and a soft-actor-critic algorithm are used to train the deep learning model. During training, the model continuously interacts with the drone simulator, collecting state-action-reward-new-state samples and storing them in experience pool B. Through continuous iterative updates, the model learns to mimic human actions in different environments and tasks, achieving efficient task execution.
[0030] Step 5:
[0031] Migrate the trained drone autonomous flight control model to a real-world environment for testing. In real-world testing, the model must face more unknown factors and real-time changing conditions to test its performance and stability in actual applications.
[0032] Through the above steps, the present invention not only improves the flight capabilities of drones in various complex environments, but also effectively learns and imitates the operating habits and decision-making methods of human pilots, thereby achieving more accurate and safe flight mission execution in unknown environments. These implementations demonstrate the effectiveness and practicality of the present invention in practical applications.
Claims
1. A real-time imitation decision-making method for drones based on human preferences, characterized in that: It includes the following contents: (1) A dataset D of N human beings completing different tasks collected using a drone simulator. The dataset D is a flight trajectory of multiple drones operated by humans: D = {τ i } N i=0 ; (2) A deep learning model π(a|τ,s) based on the demonstrated attention mechanism. This model takes the human preferred trajectory and the current state faced by the drone as input, and outputs the decision action a that the drone should implement in the current state s in order to imitate the human preferred trajectory τ; (3) Based on the context-driven meta-reinforcement learning framework, the deep learning model in (2) is trained so that the trained model π(a|τ,s) can perceive the human preferences in any input τ and make adaptive decisions under different states s.
2. The method for real-time imitation decision-making of unmanned aerial vehicles based on human preference according to claim 1, characterized in that: The trajectory τ is a human-demonstrated trajectory represented by a series of state-action pairs: τ = (s0, a0), ... (s t ,a t ),…,(s T ,a T ), where t is the human demonstration collected at the tth time moment, and each pair represents the action that the drone should perform in a specific state; these trajectories are collected from a simulated environment, in which the operator of the human trajectory controls the drone to perform various tasks; each state records the drone's own state information and surrounding environment information, including the aircraft's current speed and three angles relative to the north-east coordinate system; each action records the drone's response under various environmental conditions, including the throttle control command to control the aircraft's flight speed, and the three basic angle change commands to control flight: pitch command, roll command, and yaw command.
3. The real-time imitation decision-making method for unmanned aerial vehicles based on human preference according to claim 1 is characterized in that: The deep learning model based on the demonstration attention mechanism is designed to enhance the predictive ability of unseen data through a specific inductive bias; the network architecture includes the following three main modules: (1) Recognition module: This module uses an attention weighting module to calculate the similarity weight between the query vector q and the key vector k; q represents the representation of the access state, and k represents the representation of the human state. The output of this module is the weight vector w; (2) Analysis module: After attention weighting, a point-by-point multiplication operation is performed to calculate the weighted value v″, that is, v″=∑ i v i w i ; Each vector value v i Represents the corresponding human state-action (s i ,a i ) pair representation; (3) tracking module, in this stage, the current state representation q is integrated with the weighted human state-action pair representation to form a composite representation c; the three modules are repeatedly stacked in multiple layers, and each layer of query vector q uses the composite representation c obtained in the previous layer as the initialization for subsequent operations. Finally, the composite representation c is output through a linear layer to imitate the action a.
4. The real-time imitation decision-making method for unmanned aerial vehicles based on human preference according to claim 1 is characterized in that: The context-driven meta-reinforcement learning framework is a meta-reinforcement learning algorithm based on the Soft-Actor-Critic algorithm. The algorithm selects a demonstration trajectory τ from the human demonstration dataset D each time, uses the deep learning model π(a|τ,s) and the drone simulator to interact to collect exploration data and add it to the experience pool B. The exploration data consists of a series of state-action-imitation reward-next moment state (s, a, r, s ′ ) data pairs; the algorithm periodically calls the standard reinforcement learning optimization operator based on Soft-Actor-Critic and uses the data in the experience pool B to update the model π(a|τ,s); after continuous exploration and updating, the model is stimulated to learn to imitate the human preference behaviors in the human demonstration dataset and complete the specified task.
5. The real-time imitation decision-making method for unmanned aerial vehicles based on human preference according to claim 1, characterized in that: The model reward consists of two parts, namely W and R T composition: in, is the human demonstration data pair with the minimum distance from the current state-action pair (s, a) in the human dataset, W is the metric function; R T As a reward for the task.
Citation Information
Cited By
Manufacturing industry value chain collaborative optimization method and device based on dynamic multi-criterion decision analysis
CN119417640A
Intelligent logistics management system based on large language model
CN120806768A
Intelligent logistics management system based on large language model
CN120806768B
