A planetary flight obstacle avoidance guidance method based on ARS reinforcement learning algorithm

Through the planetary flight obstacle avoidance guidance method based on the ARS reinforcement learning algorithm, the use of neural networks and the design of detection boundary warning zones solves the problem of poor obstacle avoidance autonomy in the existing technology and achieves efficient and robust obstacle avoidance effects.

CN114115309BActive Publication Date: 2024-09-06NORTHWESTERN POLYTECHNICAL UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111400188.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-09-06
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

Existing planetary flight obstacle avoidance technology has problems such as poor autonomy and low fault tolerance. It is especially difficult to ensure flight safety in complex flight environments, and traditional methods are difficult to effectively solve.

Method used

A planetary flight obstacle avoidance guidance method based on the ARS reinforcement learning algorithm is used. By setting the aircraft action space, state space and reward function, the neural network is used to realize the aircraft obstacle avoidance function. After multiple rounds of training, the obstacle avoidance guidance law is obtained, combining the detection boundary and Obstacle avoidance operations are performed in the early warning area.

Benefits of technology

Efficient and robust obstacle avoidance guidance is achieved, which can effectively avoid obstacles in complex environments and improve the autonomy and safety of the aircraft.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115309B
    Figure CN114115309B
Patent Text Reader

Abstract

The invention discloses a planetary flight obstacle avoidance guidance method based on an ARS reinforcement learning algorithm. First, an aircraft action space, an aircraft state space, and a reward function are set, and then an ARS algorithm hyperparameter is set, and a neural network is used to realize an aircraft obstacle avoidance function; the ARS algorithm is run, and experience is acquired through interaction with the environment and the neural network is continuously updated to learn an obstacle avoidance guidance law; after training for multiple rounds, the algorithm converges to obtain the obstacle avoidance guidance law; when the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft detection range is used as the detection boundary, the area outside the detection boundary is a safe area, and the area inside the detection boundary is a warning area; when the aircraft is in the warning area, the obstacle avoidance guidance law needs to be activated to avoid the obstacle, otherwise it flies normally. The method of the invention is a relatively simplified model-free reinforcement learning algorithm, which adopts a linear strategy suitable for solving continuous behavior problems and has high efficiency and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of aerospace technology, and in particular relates to a planetary flight obstacle avoidance guidance method. Background Art

[0002] Deep space exploration is of great significance to the exploration of the origin and evolution of life, the development and utilization of space resources, and the innovation of space science and technology. Therefore, people pay more and more attention to it. Among them, using a rover or a probe aircraft to directly detect and patrol the surface of a planet is one of the most effective detection methods. The former has been maturely applied in the landing process of the moon and Mars, but the rover has a small detection range and its mobility is limited by the terrain. It is difficult to detect special terrains such as canyons and mountains. Compared with the rover, the probe aircraft has a large degree of freedom and a wide detection range, and can search and detect areas that are difficult for the rover to reach. With the increase in the number of exploration missions and the complexity of scientific missions, the exploration aircraft technology is of great significance to planetary exploration missions.

[0003] Autonomous obstacle avoidance is the basic problem for exploration vehicles to achieve safe exploration flight. However, due to the long distance from the earth, large measurement and control delay error, complex flight environment and difficulty in predicting in advance, it poses a serious threat to the safety of planetary flight. Many scholars have proposed a variety of different methods for the problem of obstacle avoidance of exploration vehicles. The traditional methods are mainly divided into three types: geometric method, path planning method and numerical solution method. With the rapid rise and development of machine learning technology in recent years, many scholars have combined some machine learning methods with the problem of planetary obstacle avoidance flight to overcome the shortcomings of poor autonomy and low fault tolerance of general solution methods. At present, the application of machine learning algorithms in the field of guidance is mainly divided into two ideas: one idea is to discretize the landing problem and abstract it into a problem suitable for the application of reinforcement learning algorithms, such as discretizing the entire guidance process into stages, separating some control quantities in the guidance process and solving them using reinforcement learning, but guidance itself is a continuous and nonlinear complex problem. Discretization is bound to make the problem too simplified and the result precision low, making it unfeasible in reality. The other is to directly apply high-quality algorithms in the field of machine learning to the guidance problem, but this type of method is overly dependent on hardware performance and its generalization ability remains to be verified.

[0004] In summary, the current methods have certain limitations for obstacle avoidance. For the problem of planetary obstacle avoidance guidance, combining machine learning to design an autonomous and controllable guidance law with a certain degree of intelligence has considerable theoretical and practical significance. Summary of the invention

[0005] In order to overcome the deficiencies of the prior art, the present invention provides a planetary flight obstacle avoidance guidance method based on the ARS reinforcement learning algorithm. First, the aircraft action space, the aircraft state space, and the reward function are set, and then the ARS algorithm hyperparameters are set, and a neural network is used to realize the aircraft obstacle avoidance function; the ARS algorithm is run, and the experience is acquired by interacting with the environment and the neural network is continuously updated to learn the obstacle avoidance guidance law; after training for multiple rounds, the algorithm converges to obtain the obstacle avoidance guidance law; when the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft detection range is used as the detection boundary, the outside of the detection boundary is the safety zone, and the inside of the detection boundary is the warning zone; when the aircraft is in the warning zone, the obstacle avoidance guidance law needs to be activated to avoid the obstacle, otherwise it flies normally. The method of the present invention is a relatively simplified model-free reinforcement learning algorithm, which adopts a linear strategy suitable for solving continuous behavior problems and has high efficiency and robustness.

[0006] The technical solution adopted by the present invention to solve the technical problem includes the following steps:

[0007] Step 1: Set the aircraft action space A;

[0008] The aircraft overload is used as the output control quantity; the aircraft adopts a continuous action space, and its behavior satisfies the maximum overload constraint; the overload size ny satisfies:

[0009] ny∈[-n max , n max ] (1)

[0010] Where n max Indicates the maximum overload value;

[0011] Step 2: Design the aircraft state space S;

[0012] The relative position relationship between the aircraft and the obstacle - relative distance R, relative distance change rate dR, and line of sight height angle q are used to establish the state space, that is:

[0013] S = [R, dR, q] (2)

[0014] The relative distance R, relative distance change rate dR, and sight height angle q are normalized;

[0015] Step 3: Set the reward function r;

[0016] When the aircraft successfully avoids an obstacle, a positive reward value is given; otherwise, a negative reward value is given. The reward function designed during the obstacle avoidance process is as follows:

[0017]

[0018] In the formula, R initalIndicates the initial state, success means the aircraft successfully avoids obstacles, fail means the aircraft fails to avoid obstacles, and other means the aircraft reaches the target point safely;

[0019] Step 4: Set the ARS algorithm hyperparameters, including the learning rate parameter of the ARS algorithm, the number of parallel increments, the number of optimal results for forming increments, the noise level, the number of cyclic training times, the length of a single time domain, and the step size;

[0020] Step 5: Use neural networks to implement the aircraft's obstacle avoidance function; run the ARS algorithm, interact with the environment to gain experience and continuously update the neural network to learn the obstacle avoidance guidance law; after training for multiple rounds, the algorithm converges and the obstacle avoidance guidance law is obtained.

[0021] Step 6: In the atmospheric planetary environment, when the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft's detection range is used as the detection boundary. The area outside the detection boundary is the safety zone, and the area inside the detection boundary is the warning zone. When the aircraft is in the warning zone, the obstacle avoidance guidance law needs to be activated to avoid the obstacle, otherwise it will fly normally.

[0022] The obstacle avoidance guidance law ends when the following two conditions are included:

[0023] (1) If the accuracy requirement of the obstacle avoidance guidance law is not met within a given time domain length, the obstacle avoidance guidance law is terminated;

[0024] (2) If the aircraft collides with an obstacle during flight, the obstacle avoidance guidance law is terminated.

[0025] Preferably, the hyperparameters of the ARS algorithm include a learning rate parameter set to 0.1, a number of parallel increments of 32, an optimal number of increments of 8, a noise level of 0.4, 100 cycles of training, a single time domain length of 1000, and a step length of 0.05s.

[0026] Preferably, the ARS algorithm is as follows:

[0027] Step 5-1: Initialize the step size α, the number of sampling directions N for each iteration, the standard deviation v of the exploration noise, and the number of directions k selected for parameter update; linear strategy parameters M0 = 0, mean μ0 = 0, variance ∑0 = 0;

[0028] Step 5-2: Loop until task learning is completed:

[0029] Step 5-3: Sampling according to the standard normal distribution, using the strategies corresponding to the 2N directions to collect 2N derivations in the time domain H and their corresponding rewards;

[0030]

[0031] Among them, π j,k,+(x) and π j,k,- (x) represent the strategies after positive and negative disturbances, respectively. j represents the current policy parameters, δ k represents disturbance, x represents state, μ j ,∑ j are the mean and covariance of the initial training state, k ∈{1, 2, ..., N};

[0032] Step 5-4: According to max{r(π j,k,+ ), r(π j,k,- )} for the direction δ k Sort and select the k reverse delta with the largest value (k) , π j,k,+ and π j,k,- As a corresponding strategy;

[0033] Step 5-5: Update strategy where σ R is the standard deviation of the rewards used in the update step; b is the number of perturbations, and r is the reward obtained;

[0034] Step 5-6: Set μ j+1 ,∑ j+1 Set to the mean and covariance of the initial state of training;

[0035] Step 5-7: Update the step size parameter j plus 1.

[0036] The beneficial effects of the present invention are as follows:

[0037] The method of the present invention is a relatively simplified model-free reinforcement learning algorithm, which adopts a linear strategy suitable for solving continuous behavior problems and has high efficiency and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a schematic diagram of the principle of the method of the present invention.

[0039] Figure 2 Schematic diagram of the guidance algorithm update of the method of the present invention, wherein (a) is the basic principle of the finite difference method, and (b) is a schematic diagram of the ARS algorithm update direction.

[0040] Figure 3 The present invention is a flowchart of the obstacle avoidance algorithm used in the method.

[0041] Figure 4 Schematic diagram of a reference coordinate system on the planetary surface according to an embodiment of the present invention.

[0042] Figure 5 1 and 2 are obstacle avoidance flight trajectories according to an embodiment of the present invention, wherein (a) is scenario 1 and (b) is scenario 2.

[0043] Figure 6 1 is a decision-making process diagram of an embodiment of the present invention, wherein (a) is scenario 1, and (b) is scenario 2.

[0044] Figure 7 1 is a diagram of relative distance changes according to an embodiment of the present invention, wherein (a) is scenario 1, and (b) is scenario 2. DETAILED DESCRIPTION

[0045] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0046] Machine learning methods include optimization theory, deep learning, reinforcement learning, etc. Among them, reinforcement learning is particularly popular because of its good decision-making mechanism and intelligence similar to human experience learning. At present, most reinforcement learning methods are still focused on balance optimization, mechanism control, etc., and are less used in guidance and other trajectories. The present invention proposes a model-free reinforcement learning method, combined with a planetary obstacle avoidance flight reinforcement learning environment, to realize a guidance algorithm based on reinforcement learning.

[0047] like Figure 1 As shown, a planetary flight obstacle avoidance guidance method based on ARS reinforcement learning algorithm includes the following steps:

[0048] Step 1: Set the aircraft action space A;

[0049] In order to achieve obstacle avoidance flight, it is necessary to control the control force acting on the aircraft. The aircraft overload is used as the output control quantity; the aircraft adopts a continuous action space, and its behavior satisfies the maximum overload constraint; the overload size satisfies:

[0050] ny∈[-ny max ,ny max ] (1)

[0051] Step 2: Design the aircraft state space S;

[0052] The purpose is to find a suitable flight trajectory to avoid obstacles. In order to achieve universality, we cannot select data based on the environment itself, but use the relative information between the aircraft and the obstacle as the state space. Therefore, it is necessary to comprehensively consider the parameter information of both. However, if too many parameters are used in the state space, the generalization ability of the algorithm will be reduced. Therefore, the relative position relationship between the aircraft and the obstacle - relative distance R, relative distance change rate dR, and line of sight height angle q are used to establish the state space, that is:

[0053] S = [R, dR, q] (2)

[0054] The relative distance R, relative distance change rate dR, and sight height angle q are normalized;

[0055] Step 3: Set the reward function r;

[0056] The reward and punishment function is a way for the reinforcement learning algorithm to interact with the outside world, so the design of the reward and punishment function becomes particularly important. When the obstacle avoidance is successful, a larger reward value is given; otherwise, a lower negative reward value is given. The reward function is designed in the obstacle avoidance process as follows:

[0057]

[0058] Step 4: Set the ARS algorithm hyperparameters, including setting the learning rate parameter to 0.1, the number of parallel increments to 32, the number of optimal results for forming increments to 8, the noise level to 0.4, the training cycle to 100 times, the single time domain length to 1000, and the step size to 0.05s.

[0059] Step 5: Use a neural network to implement the aircraft's obstacle avoidance function; run the ARS algorithm, interact with the environment to gain experience and continuously update the neural network to learn the obstacle avoidance guidance law; after multiple rounds of training, the algorithm converges and the obstacle avoidance guidance law is obtained;

[0060] Step 6: In the atmospheric planetary environment, when the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft's detection range is used as the detection boundary. The area outside the detection boundary is the safety zone, and the area inside the detection boundary is the warning zone. When the aircraft is in the warning zone, the obstacle avoidance guidance law needs to be activated to avoid the obstacle, otherwise it will fly normally.

[0061] The obstacle avoidance guidance law ends when the following two conditions are included:

[0062] (1) If the accuracy requirement of the obstacle avoidance guidance law is not met within a given time domain length, the obstacle avoidance guidance law is terminated;

[0063] (2) If the aircraft collides with an obstacle during flight, the obstacle avoidance guidance law is terminated. Specific embodiment:

[0065] like Figure 3 As shown in the figure, assuming that in a certain atmospheric planetary environment, the detection range of the aircraft is 100m. When the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft's detection range is used as the detection boundary. The area outside the detection boundary is the safety zone, and the area inside the detection boundary is the warning zone. When the aircraft is in the warning zone, the obstacle avoidance guidance law based on the ARS algorithm needs to be activated to avoid the obstacle, otherwise it will fly normally.

[0066] The ARS algorithm is a relatively simplified model-free reinforcement learning algorithm that uses a linear strategy suitable for solving continuous behavior problems and has high efficiency and robustness.

[0067] like Figure 3As shown in the figure, the ARS algorithm uses a derivative-free policy gradient method, namely the finite difference method, which uses the relationship between gradient and directional derivatives to approximate the gradient by sampling multiple directional derivatives to establish a linear policy model. The update principle of the ARS algorithm is to use the current step state as the origin, form 2N next step states in all directions within a step unit, and compare the difference r(π) between the two corresponding reward values ​​in opposite directions. j,k,+ )-r(π j,k,- ), find the k directions with the largest reward value difference and use them as the next update direction. At the same time, ARS uses an adaptive step size and takes the standard deviation of the current strategy sampling result as an indicator. When the standard deviation is large, it means that the current strategy variance is large and a large step size cannot be used; otherwise, the step size can be increased. The ARS algorithm is as follows:

[0068] Step 5-1: Initialize the step size α, the number of sampling directions N for each iteration, the standard deviation v of the exploration noise, and the number of directions k selected for parameter update; linear strategy parameters M0 = 0, mean μ0 = 0, variance ∑0 = 0;

[0069] Step 5-2: Loop until task learning is completed:

[0070] Step 5-3: Sampling according to the standard normal distribution, using the strategies corresponding to the 2N directions to collect 2N derivations in the time domain H and their corresponding rewards;

[0071]

[0072] Step 5-4: According to max{r(π j,k,+ ), r(π j,k,- )} for the direction δ k Sort and select the k reverse delta with the largest value (k) , π j,k,+ and π j,k,- As a corresponding strategy;

[0073] Step 5-5: Update strategy where σ R is the standard deviation of the rewards used in the update step;

[0074] Step 5-6: Set μ j+1 ,∑ j+1 Set to the mean and covariance of the initial state of training;

[0075] Step 5-7: Update the step size parameter j plus 1. Specific embodiment:

[0077] Establish a three-dimensional mathematical model of relative motion, Figure 4The following is a three-dimensional schematic diagram of the detection aircraft and the target point in the inertial coordinate system. The origin of this coordinate system is located at the target point, where v is the aircraft speed, θ is the speed inclination, and σ is the track deviation. This coordinate system is mainly used to determine the reference of the center of mass position and spatial attitude of the aircraft.

[0078] Under the above assumptions, a three-degree-of-freedom dynamic model is first established in the ground coordinate system, and the two-dimensional space is similar. For simplicity, this embodiment only studies the center of mass motion. The center of mass motion equation is as follows:

[0079]

[0080] Where x is the flight distance, y is the flight altitude, m is the mass of the vehicle, R0 is the radius of the planet, and R x , R y , R z is the projection of the aerodynamic force acting on the aircraft in the coordinate system, and g is the local gravitational acceleration.

[0081] The aerodynamic force is calculated using the following expression:

[0082]

[0083]

[0084] Among them, C x , C y , C z They are called drag coefficient, lift coefficient, and lateral force coefficient respectively; q is dynamic pressure, ρ is air density; S ref is the reference area. In this embodiment, the aircraft is controlled by normal overload command guidance, so R y =n·mg,(x c ,y c ) is the obstacle position, r i It is the safe distance between the aircraft and obstacles. Various constraints must be met during the flight obstacle avoidance process:

[0085] Control constraints:

[0086] |n|<n max (7)

[0087] Initial constraints:

[0088] x(t0)=x0, y(t0)=y0, θ(t0)=θ0 (8)

[0089] Terminal constraints:

[0090] x(t f )=x f , y(t f )=y f(9)

[0091] Obstacle avoidance constraints:

[0092]

[0093] Some obstacle avoidance simulation results are shown below: Figures 5 to 7 As shown:

[0094] In the scenario where the initial state of the aircraft and the position of obstacles change randomly, the aircraft flies normally when no obstacle is detected. After an obstacle is detected and the aircraft enters the warning area, ARS is used to guide the flight according to the input state. The simulation results show that ARS can perform obstacle avoidance flight in time according to the trained obstacle avoidance strategy and has good robustness.

Claims

1. A planetary flight obstacle avoidance guidance method based on ARS reinforcement learning algorithm, characterized in that: The steps include: Step 1: Set the aircraft action space A; The aircraft overload is used as the output control quantity; the aircraft adopts a continuous action space, and its behavior satisfies the maximum overload constraint; the overload size ny satisfies: ny∈[-n max ,n max ] (1) Where n max Indicates the maximum overload value; Step 2: Design the aircraft state space S; The relative position relationship between the aircraft and the obstacle - relative distance R, relative distance change rate dR, and line of sight height angle q are used to establish the state space, that is: S = [R, dR, q] (2) The relative distance R, relative distance change rate dR, and sight height angle q are normalized; Step 3: Set the reward function r; When the aircraft successfully avoids an obstacle, a positive reward value is given; otherwise, a negative reward value is given. The reward function designed during the obstacle avoidance process is as follows: In the formula, R inital Indicates the initial state, success means the aircraft successfully avoids obstacles, fail means the aircraft fails to avoid obstacles, and other means the aircraft reaches the target point safely; Step 4: Set the ARS algorithm hyperparameters, including the learning rate parameter of the ARS algorithm, the number of parallel increments, the number of optimal results for forming increments, the noise level, the number of cyclic training times, the length of a single time domain, and the step size; Step 5: Use a neural network to implement the aircraft's obstacle avoidance function; run the ARS algorithm, interact with the environment to gain experience and continuously update the neural network to learn the obstacle avoidance guidance law; after multiple rounds of training, the algorithm converges and the obstacle avoidance guidance law is obtained; Step 6: In the atmospheric planetary environment, when the distance between the obstacle and the aircraft is within the detection range of the aircraft, the boundary circle of the aircraft's detection range is used as the detection boundary. The area outside the detection boundary is the safety zone, and the area inside the detection boundary is the warning zone. When the aircraft is in the warning zone, the obstacle avoidance guidance law needs to be activated to avoid the obstacle, otherwise it will fly normally. The obstacle avoidance guidance law ends when the following two conditions are included: (1) If the accuracy requirement of the obstacle avoidance guidance law is not met within a given time domain length, the obstacle avoidance guidance law is terminated; (2) If the aircraft collides with an obstacle during flight, the obstacle avoidance guidance law is terminated.

2. The planetary flight obstacle avoidance guidance method based on the ARS reinforcement learning algorithm according to claim 1, characterized in that: The hyper parameters of the ARS algorithm include a learning rate parameter set to 0.1, a number of parallel increments of 32, an optimal number of increments of 8, a noise level of 0.4, 100 cycles of training, a single time domain length of 1000, and a step size of 0.05 s.

3. The planetary flight obstacle avoidance guidance method based on the ARS reinforcement learning algorithm according to claim 1, characterized in that: The ARS algorithm is as follows: Step 5-1: Initialize the step size α, the number of sampling directions N for each iteration, the standard deviation v of the exploration noise, and the number of directions k selected for parameter update; linear strategy parameters M0 = 0, mean μ0 = 0, variance ∑0 = 0; Step 5-2: Loop until task learning is completed: Step 5-3: Sampling according to the standard normal distribution, using the strategies corresponding to the 2N directions to collect 2N derivations in the time domain H and their corresponding rewards; Among them, π j,k,+ (x) and π j,k,- (x) represent the strategies after positive and negative disturbances, respectively. j represents the current policy parameters, δ k represents disturbance, x represents state, μ j ,∑ j are the mean and covariance of the initial training state, k∈{1, 2, ..., N}; Step 5-4: According to max(r(π j,k,+ ), r(π j,k,- )} for the direction δ k Sort and select the k reverse delta with the largest value (k) , π j,k,+ and π j,k,- As a corresponding strategy; Step 5-5: Update strategy where σ R is the standard deviation of the rewards used in the update step; b is the number of perturbations, and r is the reward obtained; Step 5-6: Set μ j+1 ,∑ j+1 Set to the mean and covariance of the initial state of training; Step 5-7: Update the step size parameter j plus 1.

Citation Information

Patent Citations

  • Obstacle avoidance method for soft landing of object outside earth under multi-obstacle constraint environment

    CN105929844A

  • Multi-aircraft autonomous decision-making method under scene quick change condition

    CN111897316A

  • Cooperative dynamic path planning method for multiple Mars aircrafts

    CN113220008A

  • Flight control device, spacecraft, and reference path correction method

    WO2013008830A1

  • Unmanned aerial vehicle avoiding obstacles

    WO2017222542A1