Unmanned aerial vehicle autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm

Through the combination of deep Q network and dynamic SARSA algorithm, the efficient and intelligent UAV autonomous obstacle avoidance system is realized, which solves the problem of insufficient obstacle avoidance capabilities of existing technologies in complex environments and improves the flight safety of UAVs. ity and adaptability.

CN118760235APending Publication Date: 2024-10-11NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411096833.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing UAV obstacle avoidance technology lacks in-depth understanding and adaptability in complex and changeable environments, and is difficult to meet the needs of long-term and long-distance flight missions. It also suffers from environmental adaptability, real-time response, intelligence level and algorithm generalization capabilities. There are deficiencies in this area.

Method used

An autonomous UAV obstacle avoidance system based on the deep Q network and the dynamic SARSA algorithm is used to extract visual features through the convolutional neural network, combine with the fully connected layer to generate obstacle avoidance decisions, and use the dynamic SARSA algorithm for real-time status assessment and strategy learning to achieve Adaptive obstacle avoidance strategy optimization.

Benefits of technology

Significantly improves the UAV's ability to avoid obstacles in complex environments, enhances the safety and response speed of the flight process, optimizes calculation efficiency, improves the accuracy and adaptability of obstacle avoidance decisions, and reduces potential mid-air collision risks .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760235A_ABST
    Figure CN118760235A_ABST
Patent Text Reader

Abstract

The invention discloses an unmanned aerial vehicle autonomous obstacle avoidance system based on a deep Q network and a dynamic SARSA algorithm, and relates to the technical field of unmanned aerial vehicle autonomous control, and the system comprises a sensor module, a flight control system and an integrated computing platform, and can detect obstacles in real time and exchange information with other unmanned aerial vehicles in a cluster. And the unmanned aerial vehicle cluster is guided to realize efficient collaborative obstacle avoidance. The deep Q network construction comprises a convolutional neural network layer and a full connection layer, and is responsible for extracting key features from image data and generating an obstacle avoidance decision. The dynamic SARSA algorithm comprises a state evaluation function and a reward function so as to realize optimization of a real-time obstacle avoidance strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention relates to the technical field of autonomous control of unmanned aerial vehicles, and in particular to an autonomous obstacle avoidance system for unmanned aerial vehicles combining a deep Q network and a dynamic SARSA algorithm. Background technology:

[0002] The rapid development of drone technology has led to its widespread application in many fields, including but not limited to military reconnaissance, geographic mapping, environmental monitoring and logistics distribution. Despite this, drones still face challenges in complex environments when performing tasks, especially in situations where autonomous obstacle avoidance is required. At present, the obstacle avoidance technology of drones mainly relies on various sensors to perceive the surrounding environment, such as ultrasonic, infrared and lidar. These sensors can provide basic information about obstacles, but have limitations in detection range, anti-interference ability and data fusion.

[0003] Existing obstacle avoidance algorithms are usually based on simple logic, such as circumventing or hovering when encountering obstacles, which is inadequate in the face of complex and changing environments. These algorithms often lack in-depth understanding and adaptability to the environment, and are difficult to meet the needs of long-term and long-distance flight missions. In addition, existing technologies are insufficient in environmental adaptability, real-time response, intelligence level, obstacle avoidance strategy diversity, and algorithm generalization capabilities, limiting the potential for autonomous flight of drones in unknown environments. Summary of the invention:

[0004] The present invention aims to solve the limitations of existing unmanned aerial vehicle obstacle avoidance technology and provide a unmanned aerial vehicle autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm, which realizes efficient and accurate unmanned aerial vehicle swarm obstacle avoidance through algorithm fusion.

[0005] The present invention adopts the following technical solutions to solve the above technical problems:

[0006] The UAV autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm specifically includes: multiple UAVs, each of which is equipped with sensors and communication equipment for detecting obstacles and communicating with other UAVs in the cluster; the flight control system adjusts the flight status of the UAV according to the instructions provided by the computing platform, and the integrated computing platform is responsible for running the obstacle avoidance algorithm.

[0007] The construction of the deep Q network (DQN) of the UAV autonomous obstacle avoidance algorithm based on the deep Q network and dynamic SARSA algorithm includes the following steps:

[0008] 2-1. Application of Convolutional Neural Network (CNN) Layer,The initial step involves processing the image data captured by the drone using the CNN layer.,This layer is responsible for extracting key features from the visual input,,and converting the raw image into a useful feature representation through,filtering and pooling operations;

[0009] 2-2. Further processing of features, once the CNN layer extracts the features, these features are then fed into the fully connected layer. The fully connected layer performs in-depth analysis and processing of the features to facilitate the generation of obstacle avoidance decisions;

[0010] 2-3. Generation of obstacle avoidance decisions. The output of the fully connected layer is a feature-based obstacle avoidance strategy, which will directly affect the flight path planning of the drone.

[0011] 2-4. Decision implementation and feedback, based on the obstacle avoidance decision generated by the fully connected layer, the drone's flight control system will adjust the flight action to avoid the detected obstacles. At the same time, the system will collect feedback on the obstacle avoidance action for further training and optimization of the DQN model.

[0012] Furthermore, the dynamic SARSA algorithm includes:

[0013] 3-1. Real-time state evaluation and action selection: The dynamic SARSA algorithm receives the long-term planning information provided by the DQN algorithm in real time, and combines the current flight state of the drone t , evaluate the action value function Q(s) of the current state t , a t );

[0014] 3-2. Environment interaction and reward calculation: The drone performs action a according to the current strategy t , enter the new state s t+1 , and receive an immediate reward r t+1 , which is based on obstacle avoidance and flight efficiency.

[0015] 3-3. Strategy learning and updating: Use time difference learning to update the action value function, through the formula:

[0016] Q(s t , a t )←Q(s t , a t )+α[r t+1 +γQ(s t+1 , a t+1 )-Q(s t , a t )]

[0017] Among them, α is the learning rate, γ is the discount factor, and a t+1 According to the new state s t+1 Select the action.

[0018] 3-4. Adaptive obstacle avoidance strategy optimization: The algorithm adaptively adjusts the obstacle avoidance strategy based on the updated action-value function to maximize the expected reward while taking into account real-time feedback and long-term planning.

[0019] 3-5. Iterative feedback and strategy improvement: Through continuous iteration of steps 3-2 to 3-4, the drone continuously learns and improves its obstacle avoidance strategy to adapt to environmental changes and achieve efficient and accurate autonomous obstacle avoidance.

[0020] Then, the fusion algorithm includes the following steps:

[0021] 4-1. Integration of strategy generation and real-time feedback: The DQN algorithm generates obstacle avoidance strategies based on environmental features and long-term goals, while the SARSA algorithm provides real-time feedback to adjust obstacle avoidance actions to ensure immediate response capabilities.

[0022] 4-2. Dynamic obstacle avoidance decision making: Combining the long-term planning of DQN and the real-time adjustment of SARSA, the system makes dynamic obstacle avoidance decisions that adapt to the current flight environment and achieves rapid adaptation to environmental changes.

[0023] 4-3. Adaptive flight execution and optimization: The UAV performs adaptive flight based on the fused obstacle avoidance decision. At the same time, the system continuously optimizes the algorithm parameters by collecting flight data and obstacle avoidance effects to improve the accuracy and efficiency of the obstacle avoidance strategy.

[0024] A computer-readable storage medium includes a stored computer program, which encapsulates the above obstacle avoidance algorithm and adaptive learning mechanism into a computer program and is stored in the computer-readable storage medium of the drone. When these programs are executed, the drone can automatically perform obstacle avoidance operations and continuously optimize its obstacle avoidance strategy based on flight experience.

[0025] Compared with the prior art, the present invention adopts the above technical solution and has the following beneficial effects:

[0026] (1) By combining the long-term planning capability of the deep Q network (DQN) and the real-time response capability of the dynamic SARSA algorithm, the UAV can handle obstacle avoidance problems in complex environments more intelligently.

[0027] (2) The real-time adjustment of obstacle avoidance strategy and adaptive learning mechanism of the present invention significantly improves the response speed of the UAV to sudden obstacles, thereby enhancing the safety of the flight process.

[0028] (3) The present invention discretizes the continuous space through rasterization technology, reduces the complexity of the planning space, optimizes the calculation process, and thus significantly improves the calculation efficiency of the obstacle avoidance algorithm.

[0029] (4) The present invention realizes the high efficiency and intelligence of the autonomous obstacle avoidance system of UAV by integrating the advantages of deep Q network (DQN) and dynamic SARSA algorithm, which helps to improve the safety of UAV flight and reduce the potential risk of mid-air collision. This fusion strategy not only improves the accuracy of obstacle avoidance decision-making, but also enhances the adaptability of UAV to complex environments. The algorithm of the present invention provides new technical solutions for multiple fields such as UAV navigation, monitoring, and transportation, and promotes the innovative development of related technologies. After simulation verification, the algorithm of the present invention has a high application value in an actual flight environment, proving its stability and reliability under variable conditions. Description of the drawings:

[0030] Figure 1 This is the obstacle avoidance flow chart of the UAV fusion algorithm of the present invention;

[0031] Figure 2 Schematic diagram of obstacle avoidance of the drone at different times of the present invention;

[0032] Figure 3 A three-dimensional schematic diagram of obstacle avoidance for the UAV of the present invention;

[0033] Figure 4 This is the training convergence diagram of the UAV fusion algorithm of the present invention; Specific implementation method:

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings of the specification. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work are within the scope of protection of the present invention.

[0035] like Figure 1-Figure 4 As shown in the figure, an autonomous obstacle avoidance system for UAV based on deep Q network and dynamic SARSA algorithm specifically includes:

[0036] (1) Construction of UAV autonomous dispatching system:

[0037] 1.1) Construction of flight dynamics and environmental model: For multi-rotor UAVs, a flight dynamics model with 4 degrees of freedom is established, and the flight dynamics equation is established by comprehensively considering key parameters such as mass, speed, acceleration, attitude angle and angular velocity. The dynamics equation is as follows:

[0038]

[0039] Among them, m is the mass of the drone, F is the resultant external force vector, and g is the gravitational acceleration vector.

[0040] 1.2) Flight safety and conflict resolution strategy: Establish flight safety interval standards, develop conflict detection and resolution strategies, ensure that drones maintain a safe distance during obstacle avoidance, and effectively resolve potential conflicts.

[0041] (2) Deep Q Network (DQN) Construction:

[0042] 2.1) Feature extraction of convolutional neural network (CNN) layer: In this step, the visual image data captured by the drone is processed using the CNN layer. The CNN layer extracts image features through a series of filters and nonlinear activation functions. These features can characterize the attributes of obstacles such as shape, size, and position. The feature extraction process can be expressed as:

[0043] F=CNN(I)

[0044] Among them, represents the original input image, and F represents the extracted feature map.

[0045] 2.2) Dimensionality reduction and pooling of feature maps: Subsequently, the feature maps are reduced in dimension through the pooling layer to reduce the spatial size of the data and increase the invariance to image displacement, which helps to improve the generalization ability of the features. The pooling operation can be expressed as: P = Pooling (F), where P is the feature after pooling.

[0046] 2.3) In-depth analysis of the fully connected layer: The pooled features are mapped to a fully connected layer, which comprehensively analyzes the features through a series of weights and biases to facilitate the evaluation of obstacle avoidance strategies. The processing of the fully connected layer can be expressed as: Z = W·P+b, where W and b represent the weight and bias of the fully connected layer respectively, and Z is the output of the fully connected layer.

[0047] 2.4) Generation of obstacle avoidance decisions: Based on the output of the fully connected layer, obstacle avoidance decisions are generated through activation functions. These decisions guide the drone to choose the best flight path to avoid collisions with obstacles. The generation of obstacle avoidance decisions can be expressed as: A = σ(Z), where σ represents the activation function, such as ReLU or Sigmoid function, and A represents the final obstacle avoidance action.

[0048] 2.5) Action execution and feedback: The drone executes the corresponding flight action according to the generated obstacle avoidance decision. At the same time, the system collects feedback information of the obstacle avoidance action through sensors, such as the actual location of the obstacle and the flight status of the drone. The collection of feedback information can be expressed as: R = Feedback (A, O), where A represents the executed action, O represents the observation result of the environment, and R represents the collected feedback information.

[0049] 2.6) Update and optimization of the DQN model: Using the collected feedback information, update the parameters of the DQN model according to the Q-learning principle to optimize the obstacle avoidance strategy and improve the accuracy of decision-making.

[0050] (3) Dynamic SARSA algorithm construction:

[0051] 3.1) Real-time state evaluation and action selection: The dynamic SARSA algorithm monitors the state of the drone in real time. t , including position, speed, height, etc., using the long-term planning information provided by the DQN algorithm to evaluate each possible action a in the current state t The expected return of the state evaluation process can be expressed as:

[0052]

[0053] Among them, p(s t+1 ,r|s t , a t ) is to perform action a t Then transfer to state s t+1 and the probability of receiving reward r, γ is the discount factor.

[0054] 3.2) Environment interaction and reward calculation: The drone performs action a according to the current strategy t , after interacting with the environment, it enters a new state s t+1 , and receive instant rewards r based on obstacle avoidance effect and flight efficiency t+1 The reward calculation formula is:

[0055]

[0056] Among them, r collision is the penalty in case of collision, r efficiency It is the reward for path optimization.

[0057] 3.3) Strategy learning and updating: Use time difference learning to update the action value function to ensure that the strategy can reflect the latest environmental information and reward feedback. The action value function update formula is as follows:

[0058] Q(s t , a t )←Q(s t , a t )+α[r t+1 +γQ(s t+1 , a t+1 )-Q(s t , a t )]

[0059] Among them, α is the learning rate, γ is the discount factor, and a t+1 According to the new state s t+1 Select the action.

[0060] 3.4) Adaptive obstacle avoidance strategy optimization: The algorithm adaptively adjusts the obstacle avoidance strategy based on the updated action value function and optimizes the flight path to maximize the expected return. The obstacle avoidance strategy optimization can be expressed as:

[0061] π * (s) = arg max α Q(s,a)

[0062] The policy chooses the action a that yields the maximum expected reward in state s.

[0063] 3.5) Strategy convergence analysis: To detect whether the strategy has converged, the strategy change measure between consecutive iterations can be calculated, such as the mean square error (MSE) of the strategy difference or the change in strategy entropy. The convergence detection formula can be expressed as: Covergence Measure = E{[π * (s, n)-π * (s, n-1)] 2}, when the metric is below a certain threshold, the strategy can be considered to have converged.

[0064] (4) Implementation of fusion algorithm:

[0065] 4.1) Strategy generation and real-time feedback integration: The DQN algorithm is responsible for generating obstacle avoidance strategies based on environmental features and long-term goals. The strategy takes into account the relative position of the drone and obstacles, the speed of the drone, and the expected flight path; using the strategy output by the DQN algorithm, the drone can predict and plan a safe flight path while taking into account long-term goals and environmental changes; at the same time, the SARSA algorithm provides real-time feedback, dynamically adjusting the obstacle avoidance action based on the drone’s current flight status and real-time information about the surrounding environment; the integration of real-time feedback ensures that the drone can respond quickly to emergencies and maintain flight safety.

[0066] 4.2) Dynamic obstacle avoidance decision making: The system combines the long-term planning of the DQN algorithm and the real-time adjustment of the SARSA algorithm to make dynamic obstacle avoidance decisions that adapt to the current flight environment. This decision-making process involves a comprehensive consideration of the drone’s current position, speed, flight direction, and obstacle distribution, as well as an assessment of potential risks. By updating the obstacle avoidance strategy in real time, the drone can flexibly respond to environmental changes, such as sudden obstacles or changes in the path of other drones.

[0067] 4.3) Adaptive flight execution and optimization: The drone performs adaptive flight based on the fused obstacle avoidance decision. This process involves the real-time response and execution of the drone flight control system to the obstacle avoidance strategy; the system evaluates the obstacle avoidance effect by collecting flight data, including the drone’s flight path, speed, attitude, and the execution of obstacle avoidance actions; using the collected data, the system continuously optimizes the algorithm parameters, such as adjusting the network weights of the DQN algorithm, updating the reward function of the SARSA algorithm, etc., to improve the accuracy and efficiency of the obstacle avoidance strategy; through this adaptive optimization, the drone’s obstacle avoidance strategy can be continuously improved as flight experience accumulates, improving the obstacle avoidance success rate and flight efficiency.

[0068] (5) Simulation verification and performance analysis:

[0069] 5.1) Algorithm Integration and Deployment: Deep Q-Network and Dynamic SARSA algorithm are integrated into the simulation environment to ensure that the algorithm can be automatically executed in the simulation software. During the deployment process, necessary adjustments are made to the algorithm to adapt to the characteristics and limitations of the simulation environment.

[0070] 5.2) Parameter setting and adjustment: In the simulation experiment, the flight parameters of the drone (such as speed, acceleration, flight altitude, etc.) and the control parameters of the obstacle avoidance algorithm (such as discount factor, learning rate, exploration probability, etc.) were set in detail. Through parameter adjustment, the performance of the algorithm under different conditions was tested.

[0071] 5.3) Definition of performance indicators: A series of performance indicators are defined to evaluate the effectiveness of the algorithm, including obstacle avoidance success rate, formation maintenance, path deviation, flight time, energy consumption, etc. These indicators can fully reflect the performance of the algorithm in practical applications.

[0072] 5.4) Data Collection and Processing: During the simulation experiment, the flight data and obstacle avoidance behavior data of the drone were collected in real time. The data included position, speed, acceleration, control input, obstacle avoidance action, etc. The collected data was processed and analyzed to evaluate the algorithm performance.

[0073] 5.5) Result analysis and evaluation: The performance of the fusion algorithm is compared with other existing obstacle avoidance algorithms (such as artificial potential field method, dynamic window method, etc.). The evaluation results include the obstacle avoidance effect of the algorithm, the degree of path optimization, etc.

[0074] (6) Algorithm optimization and parameter adjustment:

[0075] The algorithm was optimized, including parameter selection and adjustment, to adapt to different environments and task requirements. The optimal value range of the algorithm parameters was determined through simulation experiments, which improved the adaptability and robustness of the algorithm.

[0076] The above content describes the preferred embodiment of the present invention, but it should be emphasized that for professionals in this technical field, many variations and adjustments can be made without departing from the core principles of the present invention. All these variations and adjustments, as long as they are within the creative concept and essential scope of the present invention, should be regarded as part of the protection of the present invention.

Claims

1. An autonomous obstacle avoidance system for unmanned aerial vehicles based on deep Q network and dynamic SARSA algorithm, including a sensor module, a flight control system and an integrated computing platform. Through algorithm fusion, the system combines the long-term planning capability of DQN with the real-time response capability of SARSA to achieve efficient and accurate obstacle avoidance for unmanned aerial vehicle swarms. The DQN is a Q network.

2. The UAV autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm according to claim 1 is characterized in that: The construction characteristics of the deep Q network include: Step 2-1, a CNN layer is responsible for extracting key visual features from the image data obtained by the drone. Through the filtering and pooling operations of this layer, the high-dimensional input data is converted into useful feature representations, expressed as Features = CNN Layer (Input Image), where the CNN is a convolutional neural network; Step 2-2, a fully connected layer, which receives the features output by the CNN layer and further processes them to generate an obstacle avoidance decision, where the output of the fully connected layer reflects the feature-based obstacle avoidance strategy, expressed as Avoidance Decision = Fully Connected Layer (Features).

3. The UAV autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm according to claim 1, wherein the dynamic SARSA algorithm is characterized by comprising: Step 3-1, a state evaluation function V(s), which is used to evaluate the value of the obstacle avoidance strategy of the drone in a specific state, where s represents the current state and V(s) reflects the expected cumulative reward from state s to the target state; Step 3-2, a reward function R(s,a,s') is used to give real-time feedback based on the result of the drone executing action a and transferring from state s to state s'. The function provides positive or negative rewards based on the obstacle avoidance effect to guide the algorithm to learn the optimal obstacle avoidance strategy. The reward can be expressed as R(s,a,s')=r+γV(s')-V(s), where r is the immediate reward and γ is the discount factor, which reflects the value of future rewards relative to immediate rewards.

4. The UAV autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm according to claims 1 to 3 is characterized in that: The system achieves efficient and accurate obstacle avoidance through algorithm fusion, including: Step 4-1: Combine the long-term planning capability of the deep Q-network algorithm with the real-time response capability of the dynamically adjusted SARSA algorithm to optimize the obstacle avoidance path of the UAV; Step 4-2: The DQN algorithm is responsible for generating long-term obstacle avoidance strategies, while the SARSA algorithm is responsible for adjusting obstacle avoidance actions in real time to ensure that the drone can respond quickly when faced with sudden obstacles. Step 4-3: The fusion algorithm can be dynamically adjusted during the flight of the UAV to adapt to the changing flight environment and obstacle distribution.

5. The UAV autonomous obstacle avoidance system based on deep Q network and dynamic SARSA algorithm according to any one of claims 1 to 4, characterized in that: The drone subsystem has adaptive learning capabilities. The system can continuously optimize obstacle avoidance strategies based on flight experience. By collecting sensor data and obstacle avoidance decision results during flight, it can automatically analyze obstacle avoidance effects and determine optimization directions.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, which is used to execute the method described in any one of claims 1 to 5 when the computer program is executed. When the program is executed by the computer, the following operations can be achieved: autonomous obstacle avoidance of the drone, providing real-time and accurate obstacle avoidance decisions through the fusion of a deep Q network and a dynamically adjusted SARSA algorithm; using data collected by the drone during flight to automatically adjust the parameters of the obstacle avoidance algorithm to improve the safety and efficiency of the drone's obstacle avoidance.

Citation Information

Cited By

  • Unmanned aerial vehicle small obstacle dynamic avoidance method based on fractional calculus

    CN119148749A

  • Safety trajectory tracking method and system for ground differential drive robot

    CN119916838A