A method for generating guidance strategy for autonomous rendezvous and docking of spacecraft based on reinforcement learning
By modeling the spacecraft rendezvous and docking process as a Markov decision process and using a neural network to compress the decision table, the problem of real-time performance and memory requirements of model-free reinforcement learning in spacecraft autonomous rendezvous and docking is solved, and efficient guidance strategy generation is achieved. and robustness verification.
Patent Information
- Application Number
- CN202111231850.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-22
AI Technical Summary
Existing technologies are difficult to effectively utilize prior knowledge in autonomous spacecraft rendezvous and docking, resulting in low real-time performance and low computing resource efficiency of model-free reinforcement learning in real physical systems. Moreover, the memory requirements of the decision table of model-based reinforcement learning are huge and difficult to achieve. Enable compression and verification in aerospace electronics.
The spacecraft rendezvous and docking process is modeled as a Markov decision process, a dynamic programming algorithm is used to generate a decision table, and a neural network model is used to compress the decision table. The Gauss–Seidel iteration method and neural network are used to verify the robustness of the strategy.
It achieves less sampling, fast convergence speed, and stable training process in autonomous spacecraft rendezvous and docking, significantly reduces the memory requirements of the decision-making strategy, and ensures the robustness and strategy consistency of the neural network model through formal verification.
Smart Images

Figure CN114036631B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of aerospace technology, and in particular relates to a method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning. Background Art
[0002] As the complexity of space missions increases, autonomous rendezvous and docking of spacecraft has become a challenging problem. The traditional solution is to use an optimization control method, which either makes a lot of simplified assumptions on the dynamic model or requires redundant computing resources. In recent years, reinforcement learning methods have been widely used in industrial applications such as robotic systems, autonomous vehicles, and the Internet of Things. Therefore, driven by complex space guidance missions, some studies have introduced reinforcement learning techniques to enhance the guidance capabilities of autonomous rendezvous and docking of spacecraft. A large number of existing works have shown that model-free reinforcement learning methods are suitable for guidance strategy learning in simulation environments, such as PPO (Proximal Policy Optimization), DDPG (Deep Deterministic Policy Gradient), D4PG (Distributed Distributional Deep Deterministic Policy Gradient), etc. However, model-free reinforcement learning requires a lot of environmental interactions, and the training is highly random, which is not easy to use in real physical systems with high real-time requirements and limited computing resources; on the contrary, model-based reinforcement learning can make full use of prior knowledge, has less interaction with the environment, and is easy to converge, which can be more efficient in real physical scenarios.
[0003] Based on the existing knowledge of spacecraft power and aerospace industry experience, it is possible to consider applying model-based reinforcement learning methods to autonomous rendezvous and docking of spacecraft. Therefore, how to model the process of autonomous rendezvous and docking of spacecraft is a key issue that needs to be solved. The optimal guidance strategy solved by model-based reinforcement learning is often represented by a decision table. The memory volume required for the decision table is huge, while the memory of aerospace electronic equipment is limited. How to compress the memory volume required for the decision table is an important issue. In addition, how to verify the effectiveness and robustness of the compressed strategy table is also crucial for autonomous rendezvous and docking of spacecraft. Summary of the invention
[0004] Purpose of the invention: In order to model the process of autonomous rendezvous and docking of spacecraft, to solve the problem of how to compress the memory volume required for the decision table, and to solve the problem of how to verify the effectiveness and robustness of the compressed strategy table, the present invention proposes a method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning.
[0005] Technical solution: A method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning, comprising the following steps:
[0006] S100: Modeling the spacecraft rendezvous and docking process as a Markov decision process model;
[0007] S200: using a dynamic programming algorithm to solve the constructed Markov decision process model, and obtaining the scores of taking different actions in all states; taking the score of taking a certain action in a certain state as an element in a decision table, thereby generating a decision table;
[0008] S300: All states in the decision table are used as training data features, and the scores of all states in the decision table under each action are used as training data labels, so as to construct training data;
[0009] S400: constructing a neural network model, and using training data to train the neural network model to obtain a neural network model that is an approximate representation of a decision table;
[0010] S500: For a certain state, the scores of all actions in the state are calculated by the neural network model obtained in S400, and the action with the largest score is selected as the optimal guidance strategy;
[0011] S600: Based on the optimal guidance strategy, the spacecraft conducts autonomous rendezvous and docking.
[0012] Furthermore, the specific implementation steps of S100 are:
[0013] The spacecraft rendezvous and docking process is decomposed into relative motion in the xy plane and relative motion in the z direction. The relative motion model follows the Clohessy-Wiltshire equation.
[0014] Take six variables, namely: x-direction distance x, y-direction distance y, z-direction distance z, x-direction speed Y direction speed and the z-direction velocity A state represents a value of the six variables, which is used to construct a state set; based on the x-direction acceleration u x , acceleration in the y direction u y , z-direction acceleration u z ,The acceleration in each direction is divided into three types: positive acceleration, negative acceleration, and zero acceleration. The value range of each type is represented by an interval, with a total of 27 action combinations, which are used to construct the action set;
[0015] Discretize the state data in the state set and the action data in the action set;
[0016] Take the discretized state set and action set, define the state transfer equation, design the reward function and define the discount factor, and then build the Markov decision process model.
[0017] Furthermore, the state transfer equation is the Clohessy-Wiltshire equation.
[0018] Furthermore, the reward function is expressed as:
[0019]
[0020] In the formula, the first fractional term is used to reduce unnecessary thrust, where u max is the maximum possible total acceleration; the second term is used to encourage the spacecraft to get closer to the target, The third term -1 is used to accelerate the convergence process; the fourth term is used to ensure that the spacecraft can get close to the target, and add increases as dist decreases.
[0021] Furthermore, the dynamic programming algorithm is a Gauss–Seidel iterative method.
[0022] Furthermore, the specific implementation steps of S400 are:
[0023] Construct a fully connected neural network model, which includes: input layer, hidden layer, and output layer; the number of nodes in the input layer is equal to the number of variables in the state set, the number of nodes in the output layer is equal to the number of actions in the action set, and the number of layers and nodes in the hidden layer can be defined by yourself;
[0024] The activation function of the neural network is defined as the ReLU function, the loss function is defined as the asymmetric mean square error function, and the regression algorithm and Adam optimizer are used to train the neural network model with training data to obtain a neural network model that is an approximate representation of the decision table.
[0025] Further, after obtaining the neural network model as an approximate representation of the decision table, the robustness of the obtained neural network model is verified, the neural network model that passes the verification participates in the calculation of S500, the neural network model that fails the verification is adjusted, and the adjusted neural network model is re-verified for robustness;
[0026] The robustness of the obtained neural network model is verified, and the specific implementation steps include:
[0027] Visualize the decision table obtained in S200 and the neural network model obtained in S400 as an approximate representation of the decision table;
[0028] Based on the visual decision table and the neural network model, the input space is divided into several grids, and the grid size in the area far from the decision boundary is larger than the grid size in the area close to the decision boundary;
[0029] For each grid, use the neural network formal verification tool to verify that in the input space represented by the grid, there is one and only one action, and this action is used as the optimal strategy output of the neural network model;
[0030] For each grid, compare the optimal strategy output of the decision table with that of the neural network model to determine the robustness of the neural network model.
[0031] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0032] (1) Based on the existing knowledge of spacecraft power and the experience of the aerospace industry, the present invention uses a model-based reinforcement learning method to model the spacecraft rendezvous and docking process as a Markov decision process. The optimal strategy of the Markov decision process model is solved by a dynamic programming algorithm to generate a decision table. Compared with the model-free reinforcement learning method, the present invention has the advantages of less sampling, faster convergence speed, and stable training process.
[0033] (2) The present invention proposes to use a neural network model to compress the decision table, which can significantly reduce the memory volume required for the decision strategy and is suitable for aerospace electronic equipment with limited memory resources;
[0034] (3) The formal verification neural network method proposed in the present invention can effectively verify the robustness of the neural network and check the consistency between the neural network and the decision table strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a diagram of the spacecraft autonomous rendezvous and docking process;
[0036] Figure 2 It is the framework of the method of the present invention;
[0037] Figure 3 Designed for a specific implementation of a neural network model;
[0038] Figure 4 A comparison between a decision table and a neural network strategy graph for a specific implementation;
[0039] Figure 5 Splitting the input space to verify the robustness of neural networks;
[0040] Figure 6 This is the motion trajectory diagram of the spacecraft autonomous rendezvous and docking after the implementation of this method. DETAILED DESCRIPTION
[0041] The method of the present invention is further described below in conjunction with the accompanying drawings.
[0042] Figure 1 The spacecraft autonomous rendezvous and docking process, that is, the tracking spacecraft autonomously guides the approach to the target spacecraft, the spacecraft autonomous rendezvous and docking guidance strategy generation method based on reinforcement learning of the present invention aims to generate the optimal guidance strategy for the tracking spacecraft during the rendezvous and docking process. The spacecraft rendezvous and docking process can be decomposed into relative motion on the xy plane and relative motion in the z direction, and the relative motion model follows the Clohessy-Wiltshire equation.
[0043] Now, we take the autonomous rendezvous and docking of spacecraft within 100 meters as an example. Figures 2 to 6 The method of the present invention is further described.
[0044] Step 1: Model the spacecraft rendezvous and docking process as a Markov decision process model, which includes: state set, action set, state transfer equation, reward function and discount factor;
[0045] The state set consists of six variables, including the x-direction distance x, the y-direction distance y, the z-direction distance z, the x-direction speed Y direction speed and the z-direction velocity One state represents a value of six variables. Table 1 is a design of the value of spacecraft state variables within 100 meters.
[0046] Table 1 Design table of values of spacecraft state variables within 100 meters
[0047]
[0048] The action set includes the acceleration u in the x direction x , acceleration in the y direction u y , z-direction acceleration u z ,The acceleration in each direction is divided into three types: positive acceleration, negative acceleration, and zero acceleration. The value range of each type is represented by an interval, with a total of 27 action combinations. Table 2 is a value design of spacecraft action variables within 100 meters.
[0049] Table 2 Design table of spacecraft motion variables within 100 meters
[0050]
[0051]
[0052] The state set and action set variables are discretized.
[0053] The state transfer equation is the Clohessy-Wiltshire equation, and the transition probability is defined as follows: the probability that the action variable takes the median value of the interval is 0.5, and the probability that it takes the extreme values of the upper and lower bounds of the interval is 0.25.
[0054] The reward function is designed as:
[0055]
[0056] In the formula, the first fractional term is used to reduce unnecessary thrust, where u max is the maximum possible total acceleration; the second term is used to encourage the spacecraft to get closer to the target, The third item -1 is used to accelerate the convergence process; the fourth item is used to ensure that the spacecraft can get close to the target. Add needs to be segmented and increases as dist decreases. Table 3 is a value design table for add.
[0057] Table 3 A value design table of add
[0058] dist 0.5 0.1 0.05 0.01 0.005 0.001 add 10 40 90 190 390 500
[0059] Define the discount factor equal to 0.95.
[0060] After establishing the Markov decision process model, the Gauss–Seidel iteration method is used to solve the scores of different actions taken in all states and generate a decision table. The elements in the decision table are the scores of the spacecraft taking a certain action in a certain state. During the rendezvous and docking process, the spacecraft queries the decision table in any state and selects the action with the largest score in that state as the optimal guidance strategy.
[0061] Step 2: In order to compress the memory volume required for the decision table, after generating the decision table, the present invention uses the decision table as training data, and the training data includes training data features and training data labels; the training data features are all states of the decision table, and the training data labels are the scores of all states in the decision table under each action; the training data is used to train the neural network model as an approximate representation of the decision table, and the specific operations are:
[0062] Design a fully connected neural network model. The number of nodes in the input layer is equal to the number of variables in the state set, that is, the input variables are six state variables; the number of nodes in the output layer is equal to the number of actions in the action set, that is, the output variable is the score of the twenty-seven actions. The number of layers and nodes in the hidden layer can be defined by yourself. Here, five hidden layers are designed, and each hidden layer contains twenty-five nodes. Use the decision table as training data, define the neural network activation function as the ReLU function, define the loss function as the asymmetric mean square error function, use the regression algorithm and the Adam optimizer, and train a neural network model that fully approximates the decision table. Figure 3A neural network model is designed for realizing autonomous rendezvous and docking guidance of spacecraft within 100 meters using the method of the present invention.
[0063] Step 3: During the rendezvous and docking process, for a certain state, the neural network trained in step 2 calculates the scores of all actions in that state, and selects the action with the largest score as the optimal guidance strategy.
[0064] In order to confirm the effectiveness of the neural network model, the accuracy of the neural network model can be calculated, and the decision table and the strategy graph of the neural network model can be visualized at the same time. The strategy graphs of the two can be compared to confirm the compression effect of the neural network strategy. Figure 4 To compare the strategy diagrams after using the method of the present invention to achieve autonomous rendezvous and docking guidance of spacecraft within 100 meters, different grayscales represent different actions.
[0065] In order to verify the robustness of the neural network model, based on the visualization of the decision table and the neural network strategy, the input space is divided into several grids. The grids can be divided larger in the area far away from the decision boundary, and smaller in the area close to the decision boundary. After dividing the input space, for each grid, a neural network is used for formal verification to verify that in the input space represented by the grid, there is only one action that will be output as the optimal strategy of the neural network. After formal verification of the neural network, for each grid, the decision table and the optimal strategy generated by the neural network are compared to verify the consistency of the decision table and the neural network strategy. Figure 5 The present invention is a schematic diagram of dividing the input space after the method of the present invention is used to achieve autonomous rendezvous and docking guidance of spacecraft within 100 meters.
[0066] Simulate the motion trajectory of a spacecraft under a neural network strategy. Figure 6 This is a simulated motion trajectory diagram after the method of the present invention is used to achieve autonomous rendezvous and docking guidance of spacecraft within 100 meters. The target spacecraft is located at the origin, Figure 6 Shows that the tracking spacecraft finally and accurately approaches the target spacecraft.
Claims
1. A method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning, characterized by: The following steps are involved: S100: Modeling the spacecraft rendezvous and docking process as a Markov decision process model; S200: Solve the constructed Markov decision process model using a dynamic programming algorithm to obtain scores for taking different actions in all states; use the score for taking a certain action in a certain state as an element in a decision table, thereby generating a decision table; S300: All states in the decision table are used as training data features, and the scores of all states in the decision table under each action are used as training data labels, thereby constructing training data; S400: Constructing a neural network model and training the neural network model using training data to obtain a neural network model that is an approximate representation of the decision table; S500: For a certain state, the neural network model obtained in S400 is used to calculate the scores of all actions in the state, and the action with the largest score is selected as the optimal guidance strategy; S600: Based on the optimal guidance strategy, the spacecraft conducts autonomous rendezvous and docking.
2. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 1, characterized in that: The specific implementation steps of S100 are: The spacecraft rendezvous and docking process is decomposed into relative motion in the xy plane and relative motion in the z direction. The relative motion model follows the Clohessy-Wiltshire equation. Take six variables: x-direction distance x, y-direction distance y, z-direction distance z, x-direction speed y-direction speed and z-direction velocity A state represents a value of the six variables, which is used to construct a state set; based on the x-direction acceleration u x , acceleration in the y direction u y , z-direction acceleration u z ,The acceleration in each direction is divided into three types including positive acceleration, negative acceleration, and zero acceleration. The value range of each type is represented by an interval, with a total of 27 action combinations, thus constructing the action set; Discretize the state data in the state set and the action data in the action set; The discretized state set and action set are taken, and the Markov decision process model is obtained by defining the state transition equation, designing the reward function and defining the discount factor.
3. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 2, characterized in that: The state transfer equation is the Clohessy-Wiltshire equation.
4. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 2, characterized in that: The reward function is expressed as: In the formula, the first fractional term is used to reduce unnecessary thrust, where u max is the maximum possible total acceleration; the second term is used to encourage the spacecraft to get closer to the target, The third term -1 is used to accelerate the convergence process; the fourth term is used to ensure that the spacecraft can get close to the target, and add increases as dist decreases.
5. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 1, characterized in that: The dynamic programming algorithm is the Gauss–Seidel iterative method.
6. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 2, characterized in that: The specific implementation steps of S400 are: Construct a fully connected neural network model, which includes: input layer, hidden layer, and output layer; the number of nodes in the input layer is equal to the number of variables in the state set, the number of nodes in the output layer is equal to the number of actions in the action set, and the number of layers and nodes in the hidden layer can be defined by yourself; The activation function of the neural network is defined as the ReLU function, the loss function is defined as the asymmetric mean square error function, and the regression algorithm and Adam optimizer are used to train the neural network model with training data to obtain a neural network model that is an approximate representation of the decision table.
7. The method for generating a spacecraft autonomous rendezvous and docking guidance strategy based on reinforcement learning according to claim 1, characterized in that: After obtaining the neural network model as an approximate representation of the decision table, the robustness of the obtained neural network model is verified, and the neural network model that passes the verification participates in the calculation of S500, and the neural network model that fails the verification is adjusted, and the adjusted neural network model is re-verified for robustness; The robustness of the obtained neural network model is verified, and the specific implementation steps include: Visualize the decision table obtained in S200 and the neural network model obtained in S400 as an approximate representation of the decision table; Based on the visual decision table and neural network model, the input space is divided into several grids. The grid size in the area far from the decision boundary is larger than the grid size in the area close to the decision boundary. For each grid, use a neural network formal verification tool to verify that within the input space represented by the grid, there is one and only one action, which serves as the optimal policy output of the neural network model. For each grid, compare the optimal strategy output of the decision table with that of the neural network model to determine the robustness of the neural network model.
Citation Information
Patent Citations
Method and system for autonomously operating aircraft
CN109213188A
Decision and control method for autonomous rendezvous and docking of spacecraft in translation approaching stage
CN112141369A
Rescue orbit decision-making method based on RBFNN under rocket thrust descent fault
CN112455723A
Solving based introspection to augment the training of reinforcement learning agents for control and planning on robots and autonomous vehicles
CN113196308A
Neural network reinforcement learning
US20180197083A1
